Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 15, 2007, 08:09 AM   #1
MAXIMUM7
macrumors newbie
 
Join Date: Nov 2007
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?
MAXIMUM7 is offline   0 Reply With Quote
Old Nov 15, 2007, 08:13 AM   #2
stadidas
macrumors regular
 
Join Date: Feb 2006
Location: Kent, United Kingdom
No. Java can only compile to byte-code to run on a Java VM.
stadidas is offline   0 Reply With Quote
Old Nov 15, 2007, 08:19 AM   #3
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
There are Java bytecode->native compilers out there, but realistically why would you? Java runs more than fast enough in a decent runtime. In some cases it actually runs faster than compiled C++ (normally as the C++ is compiled to the lowest common denominator x86 and the Java gets dynamically compiled at runtime to use ALL the CPU features available).

There is quite a list here
robbieduncan is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
need java se 6 runtime vance09 OS X Mavericks (10.9) 5 Dec 3, 2014 12:57 PM
KK7DS Python Runtime? prairiefire Mac OS X 10.7 Lion 1 Jul 4, 2014 11:37 AM
Flashlight runtime? zorinlynx iPhone 1 Oct 5, 2013 02:36 PM
Chrome on OS X -- Java plugin / Java 7 vs Java 6 Issue booyahbooyah Mac Applications and Mac App Store 4 May 31, 2013 10:13 AM
System runtime? Rossatron OS X 10.8 Mountain Lion 1 May 28, 2013 09:42 AM

Forum Jump

All times are GMT -5. The time now is 10:26 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC