LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2005, 11:56 PM   #1
rsashish
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
"-jar not understood" error


hi buddies..
i was trying 2 execute

java -jar MyJar.jar

when it gave the error like


Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: MyJar.jar
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/root/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)
at __libc_start_main (/lib/tls/libc-2.3.3.so)
at _Jv_RegisterClasses (/root/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)

could nebody help me....vat da problem was?

thanks in advance..
 
Old 11-17-2005, 05:41 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Install java from blackdown.org or java.sun.com and your problem is solved. You are using gcj and it is and incomplete jvm
 
Old 11-18-2005, 02:01 AM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Specify the .jar in your -classpath

With the standard (Sun) Java interpreter, there's no such thing as a "-jar" argument.

Instead, you specify the .jar file as part of your classpath.

EXAMPLE:

java -cp myfile.jar MyMainClass
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
k3b: "error decoding audio tracks" and "could not unlock cd driver" lefty.crupps Linux - Software 7 10-13-2005 11:29 AM
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 04:32 PM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 12:49 PM
cruise control " Warning: -configfile=/cruisecontrol.xml not understood. Ignoring." emailssent Linux - Networking 0 02-28-2005 03:11 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration