OS X: Install JDeveloper 11g on OS X 10.6

If you start development against the Oracle Fusion middleware set, it only makes sense to pick an IDE which supports those middleware products out of the box. While I still enjoy Eclipse and MyEclipseIDE, JDeveloper 11g becomes the natural choice for Oracle development. The JDeveloper 11g download is free and supports the main distributions such as Windows, Linux and Mac. The download itself weighs in at a hefty 1,4GB.

The installation on OS X is however not straightforward and running on OS X 10.6.2, I had to make the following adjustments to make the install work:

  1. Ensure that you are running JDK 1.6: Pop into a terminal session and the command java -version should show you:
    java version "1.6.0_15"
    Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
    Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
  2. If the 1.6 JVM is not your default, open the Java Preferences (via /Applications/Utilities/Java) and move the Java SE (64 Bit) to the top of the Java application versions list.
  3. JDeveloper will stil not install as it requires a symbolic link in your Java directory. Execute the following commands from terminal:
    cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
    sudo mkdir jre
    cd jre
    sudo mkdir lib
    cd lib
    sudo ln -s ../../Classes/classes.jar rt.jar
  4. Once the symlink has been created, start the JDeveloper installer and select the following the directory “/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0” in the JDK selection:
  5. Installation will start and as a last action, drag the JDeveloper runtime from $HOME/Oracle/Middleware/JDeveloper onto your quickstart bar
  6. There seems to be another installation issue, and although the install knows about the JDK selection, JDeveloper requires a further config file. From the terminal issue the following:
    echo /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home >~/.jdev_jdk
    (This will configure the default JDK for JDevloper – don’t ask, I was equally stunned about this)
  7. Oracle also managed to stuff up the JDeveloper package and it’s Info.plist. Go to ~/Oracle/Middleware and right click on JDeveloper and then “Show Package Contents”. Edit the Info.plist and replace with content below:


     
  8. The above will fix the installation and JDeveloper will now start normally (you will also be able to use the Info.plist to adjust JVM arguments)
Print Friendly