This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: running jar files with gij
- From: Michael Koch <konqueror at gmx dot de>
- To: java at gcc dot gnu dot org
- Cc: Bojan Antonovic <bojan at antonovic dot com>
- Date: Thu, 28 Oct 2004 13:46:32 +0200
- Subject: Re: running jar files with gij
- References: <4180DACE.9070806@antonovic.com>
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/