This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Java? Re: Available for test: gcc-3.1.1-1, gcc2-2.95.3-6, and gcc-mingw-3_1-20020516-1
- From: Frantisek Dufka <dufkaf at seznam dot cz>
- To: cygwin at cygwin dot com
- Date: Sun, 07 Jul 2002 10:51:41 +0200
- Subject: Java? Re: Available for test: gcc-3.1.1-1, gcc2-2.95.3-6, and gcc-mingw-3_1-20020516-1
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
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature