Compiling Rifidi with JDK 6.0 update 4

From RifidiWiki

Jump to: navigation, search

Now that the Rifidi products have been moved over to JRE 6, you will need JDK 6 to compile it. Note that you will need the latest update (JDK 6 update 4). Earlier versions of JDK 6 won't work.

Download latest JDK (JDK 6 update 4) from http://java.sun.com. If you are using windows, double click the installer to install the JDK. If you are using linux:

  1. Run the following commands:
    1. sudo apt-get install build-essential java-package fakeroot
    2. fakeroot make-jpkg jdk-6u4-linux-i586.bin
    3. sudo dpkg -i sun-j2sdk1.6_1.6.0+update4_i386.deb
  2. Now select the new version of the JRE in alternatives
    1. sudo update-alternatives --config java

Now you need to set Eclipse to use the new JDK.

  1. Go to Windows->Preferences->Java->Installed JREs.
    If you are using linux, the directory should be /usr/lib/j2sdk1.6-sun.
  2. Click Add.
  3. Click the Browse button and select the new JDK Folder.
  4. Select ok
  5. Now go to Windows->Preferences-Java->Compiler
  6. Make sure that the Compiler Compliance level is 6.0

If you experience problems after adding the new JDK as an installed JRE, you can delete your workspace and check the projects back out.

Personal tools