JET : Java Glossary
home J words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish 2008-02-25 by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
JET splash screen JET
Excelsior’s Java optimiser and native code generator, created in Novosibirsk Russia. There are currently versions for Windows and Linux in English. Excelsior is not responsible for the accuracy of anything said on this page. It is based on my personal experience with JET over a number of years.

JET Version 6.0 supports Java 1.6.0_03 or 1.5.0_13. It is currently three versions behind 1.6.0_06 Last revised 2008-04-15. JET supports Linux and Windows including Vista. JET comes with a precompiled JRE, so you don’t actually need to install a Sun 1.6.0_06 JRE though obviously you will need some JDK for development.

Why Use JET? Viewing Generated Assembler JET 5.0 Improvements
Downside of JET 64-bit Tips
When Not To Use JET Components JET Glossary
Example of Command Line JET Use JETPack Installer Purchasing JET
Example of ANT JET Use JETPerfect Deciding Which Version You Need
Kudos Auxiliary Files Prices & Ordering
How Does It Work? JET 6.0 Improvements Links

Why Use JET?

Downside of JET

When Not To Use JET

Example of Command Line JET Use

You can define a JET project and compile it, complete with installer using a GUI. It is a multi-step process, but not complicated. You can also compile in various ways from the command line or *.bat scripts.

Example of ANT JET Use

My projects are typically quite simple, and I compile them with ANT scripts simply by handing a jar to the JET compiler. Here is a how you would compile a jar with ANT:

Kudos

I have been very impressed with the JET people. Even without an official support contract, the JET people have responded quickly and thoroughly to my bug reports and suggestions for improvements. They have provided better service free than most companies provide for hefty fees. I wonder what they do for an encore when you do sign up for support! Optimising compilers are notoriously buggy, yet JET seems to generate flawless code time after time. I have never encountered any wrong code generated.

Purchasing JET

How Does It Work

See Excelsior's simplified overview of how JET works.

How does JET work? It needs somebody else’s compiler such as Sun’s to produce the byte codes, then it converts class files to a native Windows EXE file. Why is it so fast? It is able to determine if methods overriding a particular non-final method are never actually called in a particular application and therefore inline the method or generate direct calls of it. JET will allocate some local objects on the stack. It can eliminate a remarkable amount of code that is not necessary, e.g. redundant checks for null by both caller and callee. JET does loop versioning, i.e. it creates a special safe version of loop code used when it knows that various exceptions can’t possibly happen, e.g. subscripts out of range. This way it can avoid much of the overhead of the Java safety net.

There are now three versions (four if you count the Embedded edition) described in their FAQ. The compiler passes Sun's java SE TCK test suite. It supports all of Java including class.forName dynamic class loading.

64-Bit

JET is 32-bit with 64-bit planned for 2009. When the JET-compiled 32-bit executables run on 64-bit windows you have a 3 GB address space. Sun HotSpot requires a contiguous address space for the heap, whereas Excelsior JET (and, for that matter, JRockit) does not. So if you have lots of RAM, but the virtual address space is fragmented due to DLLs already loaded, Excelsior JET may be able to allocate more objects on the heap than HotSpot.

Components

JET Components
File Purpose
*.prj Human-readable project file.
jc.exe Compiler. Converts *.jar to *.exe or *.class to *.exe.
JETPackII.exe prepares self-installing apps.
JETSetup.exe Adds support for yet another JVM.
LaunchPad.exe Project control, GUI control of the compiler.

Viewing Generated Assembler

JET versions prior to 5.0 allow you to view the assembler generated by using the -genasm+ key (aka compiler option switch) in the project file to generate assembler instead of object files. This was an undocumented feature. For JET 5.0+, you will need to use a conventional disassembler to view the generated code. JET-generated code is unusually difficult to reverse engineer since the compiler does loop versioning and hiking, and is so creative at devising code that does the same thing as the original but in a quite different way.

JETPack Installer

JETPack bundles up self-installing applications. It is much like an InstallAnywhere for Java/JET. It allows: JETPack is very easy to use. Just fill in the blanks.

JETPerfect

JETPerfect was the global optimiser that came with the Professional Edition. It is no longer supported. It did a very time consuming and labour-intensive form of global optimisation creating a stand-alone executable.

Auxiliary Files

When you first install JET for development, if you don’t accept the default JVM, it has to compile the entire JVM set of class files. This takes about an hour on modern machines or over twelve hours on clunkers with less than 512 MB of RAM. People who just want to run JET-compiled apps don’t have to do this.

Obviously, to use JET, you need the JDK installed on each developer machine. To run the programs you need the JET DLL runtime and the application. The DLL contains a compiled version of the JRE. Even though Sun’s license prohibits partial JRE redistribution, Excelsior has come up with a solution that enables you to omit the unused Java SE APIs without breaking the Sun license. In a general case however, the entire Java SE API has to be bundled with your JET application to deploy it on a customer machine.

JET 6.0 Improvements

JET 5.0 Improvements

  1. JET creates only one extra directory per project called jetpdb. It used to create a large directory tree with names duplicating the branches of your packages. This caused havoc with 4NT CDD. The new system has a little PDB (project database) for each project for JET’s files.
  2. The distributables are slimmer, 8 MB for Swing/AWT and as small as 5 MB for SWT or LWJGL.
  3. Start up time 30% faster when compiled with the global optimiser.
  4. 1.7 times faster execution on some benchmarks because of: new loop optimizations, faster floating-point operations, faster memory allocation and more effective implementation of other runtime routines.
  5. Faster compilation.
  6. IntelliJ Plugin.

Tips

JET Glossary

distributable
A program bundle distributed to customers. When it runs, it installs the program on the clien’s disk. It contains the program, auxiliary DLLs, data files, icons etc.
Excelsior
The company headquartered in Novosibirsk Russia that makes JET.
executable
program containing machine language code that can run on Windows or Linux. The JET native compiler produces executables. You can run these directly on the machine used to compile them. You must bundle them first into distributables if you want to run them on other machines.
jc.exe
JET native compiler than converts class files produced by javac.exe to Windows or Linux native executables (*.exe files). You control whether to use production or beta jc.exe by putting the corresponding directory on the path.
JET
A native Java compiler for Windows and Linux from Excelsior than includes an installer. It comes is three versions, standard, professional and enterprise.
JET Enterprise
the high end version of the JET Java native compiler. The main advantage over the professional version is the optimised server runtime for extra speed.
JET Standard
the entry level version of the JET Java native compiler.
JET Professional
the intermediate level version of the JET Java native compiler. The main advantage over the standard version is slimmer distributables.
JETPackII
The GUI used to bundle a JET application up for distribution.
JRE
Java Runtime Environment. Sun's Java run time. It is not required on either the development or client machine to run JET-compiled applications. A JET-compiled version of it is automatically bundled with distributed application along with Excelsior-written native classes and DLLs.
Jet launchpad
the GUI used to set up JET projects to control how they are compiled.
JDK
Java Development Kit. Sun's Java development tool. It is not required on either client machine to run JET-compiled applications, though you would normally have a copy of the JDK on the development machine.
versioning
a powerful optimisation technique JET uses to create several specialised versions of a loop body so that it does not have to check conditions in the middle of the loop body. It selects the loop body version at the top of the loop. This removes time-consuming loop body jumps and improves code locality, and avoids instruction pre-fetch cache flushing. The technique is almost impossible to do by hand in assembler. This is one of the many reasons JET can often out-perform the best assembler hand coding.

CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.18] Spread the Net
You are visitor number 25,098.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/jet.html J:\mindprod\jgloss\jet.html