• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

JIT Compilation

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
My first question -
I was wondering if the JDK 1.4 now does JIT compilation or if bytecode is still interpreted.
I also wondered -
I went to a presentation of JBuilder 7 and saw that the tool could generate .exe files out of .jar files. Is this a "precompilation" feature from SUN or is it a perk of JBuilder?
thanks much,
tetsuo
the lone wanderer
 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At the moment all tools that create a windows .exe file for java are proprietory tools from a vendor. Sun does not provide any tools for the creation of platform specific executables as this is seen as counter-intuitive to the 'write-once, run-anywhere' promise of java
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Every version of Java since JDK 1.2 has had JIT compilation. However, none of the Sun JVM environments will store the compiled version of a .class file in a .jar or in a (Windows) .exe or (Unix) coff.
The JIT got significantly better in JDK 1.3. I am pretty sure that there were improvements made again in 1.4 but I don't know precisely.
If you really want to save the .exe, you can try
The GNU Java Compiler. It's pretty neat stuff. You can mix Java and C++ (without having to do JNI, but you have to use the GNU linker). It can compile .java or .class files. A disadvantage however is that it does not yet fully support Toolkit (which means no Swing).
I do not see where JBuilder has anything more than the standard HotSpot JIT compiler that comes with Sun JDK 1.4. I could be wrong, but I think that when the ads talk about using JIT compiler for fast execution, they just mean that the code is compiled with HotSpot (which is Sun's JIT, and which does not operate outside of memory).
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic