Re: [Clockwork-developers] Java, anyone?
Status: Planning
Brought to you by:
jlouder
|
From: Joel L. <jo...@lo...> - 2003-01-02 16:35:06
|
There's an article on Linux Journal about using GCJ to compile Java code to either bytecode or native code that was just posted yesterday. The guy who wrote it is one of the original GCJ developers: http://www.linuxjournal.com/article.php?sid=4860 I was playing around with this earlier, and got the obligatory "Hello, World!" example to compile into native code and run. I'm having a little difficulty getting an example built that uses Berkeley DB, probably because JNI (native interface) is involved. But the article says JNI works under GCJ, so I probably just need to fiddle around with it. When a program is compiled to native code with GCJ, it's linked against libgcj, which provides (almost) all the classes that Sun's JRE provides (the most notable exception is the AWT). There's even a garbage collector. I need to do some more research to make sure that libgcj provides all the classes/features we would want. I also hope that it's no more bug-ridden than Sun's classes. -- Joel |