![]() |
Java without runtime?
Is it possible to just write a Java program without using the Runtime behind it?
I.E. compile it straight to Machine Code like you would a C++ program? _________________ Black Box Products Distributor How to trace a telephone number |
Re: Java without runtime?
GNU developed something called GCJ. It compiles to either byte or machine code. Haven't used it myself but I have it installed just in case I ever wanted to play around with it.
Check it out. http://gcc.gnu.org/java/ |
Re: Java without runtime?
Yeah, I've heard about some Java to native compilers but I don't remember hearing much of anything good about them.
|
Re: Java without runtime?
Quote:
|
Re: Java without runtime?
you could try looking at this http://mcujavasource.sourceforge.net/index.xhtml
|
Re: Java without runtime?
They are also working on a Java Kernel that will interpret Java applications, but will be rolled into an executable with your class files. It is supposed to add about as much overhead as a windows executable. We will see how this ends up when Java 7 comes out.
|
Re: Java without runtime?
Quote:
|
Re: Java without runtime?
Most of the java classes are cross-platform. They have made a movement towards this recently. However, some classes must be implemented for a native operating system (sockets and windows come to mind). On the other hand, if you are distributing an executable, it isn't going to be cross platform anyway.
|
Re: Java without runtime?
The GCC, GNU Compiler Collection, contains a java compiler, that has the ability to compile java source files into executable files containing the bytes of assembler instructions; or 'machine code'.
|
| All times are GMT -5. The time now is 3:22 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC