Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 15, 2007, 07: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, 07: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, 07: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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Java Applet not working on Lion jake4ever Mac OS X 10.7 Lion 19 Feb 1, 2013 09:44 AM
HELP! I need Java! But don't have an earlier version installed! bs2511feist OS X 10 Apr 14, 2011 07:24 PM
"No compatible version of java 1.5+" when opening TinyUmbrella PSpfano OS X 3 Mar 31, 2011 12:37 PM
Using accessors in Java constructors (marc) Mac Programming 4 Dec 3, 2010 09:37 AM
Small Java Problem finnschi Mac Programming 9 Nov 25, 2010 04:26 PM


All times are GMT -5. The time now is 06:05 AM.

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

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