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]

running jar files with gij


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>>

So how can I run it with gij ? I have compiled GCJ on Mac OS X myself. Look at: http://gcc.gnu.org/ml/gcc/2004-09/msg00677.html.

Bojan


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