Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2004

Tip: Looking for answers? Try searching our database.

How to use GCJ?

Thread view: 
Josef Garvi - 22 Mar 2004 16:49 GMT
Hi,

I was just experimenting a bit with GCJ.
http://gcc.gnu.org/java/

I tried compiling a jar into native code by writing:

gcj
--classpath="c:\output\eden-common.jar;C:\Java\j2sdk1.4.2\jre\lib\rt.jar;"
c:\output\fsp.jar

but got the following message:

java/lang/Object.java:0: fatal error: the `java.lang.Object' that was found
in `C:\Java\j2sdk1.4.2\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.

Anybody knows what this means?

Am I including the Java run-time library in the wrong way? (if I do not
include that statement in the classpath, he complains about missing the
javax package).

Or i GJC not compatible with JDK 1.4?

Signature

Josef Garvi

"Reversing desertification through drought tolerant trees"
http://www.eden-foundation.org/

new income - better environment - more food - less poverty

Geiregat Jonas - 22 Mar 2004 23:56 GMT
> Hi,
>
[quoted text clipped - 23 lines]
>
> Or i GJC not compatible with JDK 1.4?

For what I know it's far from 100% compatible with JDK 1.4, it doesn't
even support swing ...


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.