J9 is the Java VM and classlibrary technology from IBM. It is highly versatile and is used as the basis for many of IBM's product offerings from embedded to enterprise. IBM has also made the J9 VM available to the Apache Harmony project for use in running their class libraries.
IBM offers a number of J9 configurations free for evalutation use. For Eclipse developers looking to compile or run bundles that require only the Foundation 1.0 classes, this is ideal.
The trial J9 configurations are shipped as part of the WebSphere Everyplace Micro Environment (WEME) 6.1 product. Follow the steps below to get WEME 6.1.
- go to the WEME trials site
- select any of the links in the right hand column of the WEME 6.1 table (the first table on the page)
- on the Trials and betas page choose the trial that applies to you. Here you are choosing between Linux and Windows (ensure you select version 6.1)
- verify that you are about to get the right thing and click "Continue"
- at this point you will be ask to login/register. This process is relatively harmless and in the end worthwhile (you are after all getting this JRE for free)
- be sure to read and then agree to the license
- finally you get to te download page. Here there are several choices so read the headings carefully. You want CDC 1.0/Foundation 1.0/Personal Profile1.0 for Windows XP/X86 (or the corresponding one for Linux). This was the second section at the time of writing.
- Download the Binary or Executable file as you choose (acutally I don't know what a .bin file is...)
- after the download completes, run the installer and follow the instructions etc etc.
- when the install completes there will be a zip file called something like weme-win-x86-ppro10_126.96.36.19960317-111429.zip in the install location. That is the J9 configuration you want. Ignore all the other _jvm stuff. That, ironically, is the JRE used to run the installer that "installed" the .zip file. Of the ~46MB you downloaded, you actually only want that 8.5MB zip!
- unzip the J9 configuration zip file wherever you like
J9 runs like any other Java system with the exception that the executables are called 'j9' and 'j9w' instead of 'java' and 'javaw'.
Configuring J9 into your IDE
Now that you have J9 on your system, you need to tell the Eclipse IDE about it. That is you need to install the JRE. Follow the instructions in the Eclipse help. Choose the "Standard VM" type and use the location into which you unzip'd J9 as the JRE home directory.
If you are doing plug-in development, there is no need to set this new JRE definition as the default, PDE will match up your execution environment automatically.
You may have noticed Foundation 1.1 downloads available. You are free to use Foundation 1.1 but as of this writing, the J9 Foundation 1.1 configuration is not readily recognized by the Eclipse IDE. Using this configuration requires that you get and install the J9 Launching plugin from the JDT Debug page.