Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-16-2005, 11:56 PM   #1
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 (/usr/lib/
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/
at __gcj_personality_v0 (/root/java.home=/usr/lib/jvm/java-1.4.2-gcj-
at __libc_start_main (/lib/tls/
at _Jv_RegisterClasses (/root/java.home=/usr/lib/jvm/java-1.4.2-gcj-

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

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

Rep: Reputation: 52
Install java from or and your problem is solved. You are using gcj and it is and incomplete jvm
Old 11-18-2005, 02:01 AM   #3
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.


java -cp myfile.jar MyMainClass


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:26 AM.

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