This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: running jar files with gij


Am Donnerstag, 28. Oktober 2004 13:41 schrieb Bojan Antonovic:
> I have a simple problem, or I am simple:
>
> I can run a jar file with java by
>
>     java -jar SMOOD.jar
>
> And I can compile it with GCJ by
>
>     gcj --main=smood.Main SMOOD.jar
>
> (resulting to an a.out). However,
>
>     gij -jar SMOOD.jar
>
> gives
>
>     Exception in thread "main" java.lang.NoClassDefFoundError:
> smood/Main <<No stacktrace available>>

Thats a bug in current gij. As workaround you can use the following:

gij --classpath=SMOOD.jar smood.Main


Michael
-- 
Homepage: http://www.worldforge.org/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]