![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2007
Posts: 2
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Sexy Programmer
|
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/
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#3 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 742
Rep Power: 3
![]() |
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.
__________________
<insert disclaimer here> <insert shameless plug for Visual Studio here> |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 148
Rep Power: 1
![]() |
Re: Java without runtime?
I've used it once. It's like any other compiler. It does compile to machine code. I have heard from others that it does have some limits.
__________________
SYNTAX ERROR ... |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
Re: Java without runtime?
you could try looking at this http://mcujavasource.sourceforge.net/index.xhtml
__________________
i dont know much about programming but i try to help |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
Join Date: May 2006
Location: West Jordan, Utah, United States
Posts: 176
Rep Power: 3
![]() |
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.
|
|
|
|
|
|
#7 | |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 895
Rep Power: 4
![]() |
Re: Java without runtime?
Quote:
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
|
|
|
|
|
|
#8 |
|
Hobbyist Programmer
Join Date: May 2006
Location: West Jordan, Utah, United States
Posts: 176
Rep Power: 3
![]() |
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.
|
|
|
|
|
|
#9 |
|
11 years old
Join Date: Nov 2007
Posts: 79
Rep Power: 1
![]() |
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'.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming with Java: Tutorial | ReggaetonKing | Java | 7 | May 20th, 2008 10:58 AM |
| Special browser in Java (Project) | stalefish | Java | 3 | Feb 9th, 2008 4:22 PM |
| First Java Program | duale2005 | Java | 3 | May 22nd, 2006 5:17 PM |
| Java IDEs and other newbiness | -IK- | Java | 24 | Jan 4th, 2006 11:05 PM |
| Java programmers, game developers, artists, be ware! RPG game team is recruiting! | atcomputers.us | Paid Job Offers | 7 | Sep 25th, 2005 7:25 PM |