Java? Re: Available for test: gcc-3.1.1-1, gcc2-2.95.3-6, and gcc-mingw-3_1-20020516-1

Frantisek Dufka dufkaf@seznam.cz
Sun Jul 7 02:48:00 GMT 2002


Sorry for my ingorance, but is it possible to make gcj working?

My naive try to compile HelloWorld

$ gcc HelloWorldApp.java
HelloWorldApp.java:0: Can't find default package `java.lang'. Check the 
CLASSPATH environment variable and the access to the archives
1 error

CLASSPATH=/d/jdk1.3.1_01/jre/lib/rt.jar

$ gcc HelloWorldApp.java
java/lang/Object.java:0: the `java.lang.Object' that was found in 
`/d/jdk1.3.1_01/jre/lib/rt.jar' didn't have the special zero-length 
`gnu.gcj.gcj-compiled' attribute.  This generally means that your 
classpath is incorrectly set.  Use `info gcj "Input Options"' to see the 
info page describing how to set the classpath
compilation terminated.


$ gcc -v HelloWorldApp.java
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.1.1/specs
...
Class path starts here:
     ./
     /usr/share/java/libgcj-3.1.1.jar/ (system) (zip)
HelloWorldApp.java:0: Can't find default package `java.lang'. Check the 
CLASSPATH environment variable and the access to the archives
1 error


So I need libgcj-3.1.1, is this a different beast, yet to be ported to 
cygwin, or is it already available? I never tried gcj under linux so I'm 
not sure if it is even worth the effort. Can this be usable for cygwin 
or maybe better for mingw to have pure win32 exe from java source?

Thanks for any reply.

Frantisek



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020707/d265ef9a/attachment.bin>


More information about the Cygwin mailing list