This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
>>>>> "Travers" == Travers <travers@transwitch.co.za> writes: Travers> gcj --main=HelloWorld -o HelloWorld HelloWorld.java Travers> HelloWorld.java:0: Can't find default package `java.lang'. Check the Travers> CLASSPATH environment variable and the access to the archives. Travers> 1 error Travers> So, what should the CLASSPATH var be aiming at? I assume you configured with the same --prefix for both? And you used `make install' to install (someone earlier copied things into place by hand and got one wrong...). gcj should have a compiled-in path to `libgcj.zip', the zip file holding the .class files for the standard libraries. I wonder why your gcj has the wrong value. Anyway, find your libgcj.zip and point the class path at it. You don't need to use the CLASSPATH environment variable if you don't want; you can also use one of several command-line options. IMHO the best fix is to get gcj to have the correct value internally. Tom