• 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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 ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic