X
  • ADF |
    December 14, 2012

Saddling your mountain lion with JDeveloper

Last October, Apple released Java Update 2012-006. This patch brought the Apple-provided JDK for OS X Lion v10.7 and OS X Mountain Lion v10.8 to version 1.6.0_37. At the same time, it disabled the Apple Java plugins and removed the Java Preferences panel that enabled users to manage the various Java releases on their computer.

On the Windows and Linux platforms, JDeveloper 11g R1 has been certified  to run on Java 7 since patch set 5. This is not the case on OS X.  

( The above is not a typo. Apple's OS for personal computer is now known as OS X; the « Mac » prefix has been dropped with the 10.8 release. And it's pronounced « Oh-Ess-Ten », by the way. Yes, I am a nitpicker. I know... )

Please note JDeveloper 11g R2 is not certified either. On any platform. It will generally work, but there are known issues with ADF Mobile. Personally, I would recommend to wait for 12c before going to JDK 7. 

Now, suppose you have installed Oracle's JDK 7 on your Mac. JDeveloper will not run on it. It will even not install. Susan and I discovered this the hard way while setting up the ADF Mobile hands-on lab we ran at the UKOUG 2012 conference. The lab was a great success nevertheless, attracting nearly a hundred delegates. It was great to see the interest ADF Mobile already generates, especially among PL/SQL Developers and DBAs. But what did we do to make it work? 

While Java Update 2012-006 removed the Java Preferences panel, it leaved in place OS X's command-line Java infrastructure. Thus, it is possible to invoke the Apple JDK 6 to start the JDeveloper installer. Suppose your user is named « Fred », and that the JDeveloper installer is on your desktop. You can execute the following command in a terminal window (on a single line) to start the installer:

 /usr/libexec/java_home --version 1.6.0
 --exec java -jar /Users/Fred/Desktop/jdevstudio11116install.jar

 The JDeveloper installer, being provided a valid JDK reference, will set up the IDE and embedded WebLogic Server instance accordingly. Clever engineering at its finest!

Join the discussion

Comments ( 9 )
  • guest Thursday, December 20, 2012

    Thank you. This worked for me!


  • Mark Wednesday, January 30, 2013

    Great post. Thanks!


  • Wim Friday, February 8, 2013

    Life saver!


  • guest Tuesday, March 19, 2013

    One has to ask why Oracle has not resolved this issue by now. Do you want people to use this tool?


  • Blueberry Coder Tuesday, March 19, 2013

    I understand your point, « guest ». However, we cannot be held responsible for Apple's decisions. They could have made the transition a lot smoother that it was.

    That said, JDeveloper 11.1.1.6 (11gR1) is already certified under Java SE 7. The next revision of 11gR2 (11.1.2.4) will be certified too, as will be 12.1.2 (12c). With those releases, installing JDeveloper on OS X will be much easier, as you will only depend on Oracle's JDK, not Apple's.

    Pushing a new JDeveloper version is no small feat, given the sheer size of the code base. The development team, believe me, is doing everything in its power to get 11.1.2.4 and 12.1.2 out of the door as quickly as possible.


  • guest Sunday, August 11, 2013

    Thank you for posting this solution. I already have the latest jdk 7 before trying to install jdev 11.1.1.7 and os x's installer keeps saying "Fatal error occured" which was very unhelpful. This solution worked for me. Thanks again!


  • Vijay Polsani Tuesday, February 11, 2014

    It works. U are awesome. Its pretty pathetic that I have to use Mac for lot of IDE stuff. The only OS that works well with JDEVELOPER is PC. I tried with Linux Lint15 and the ide controls are going haywire.


  • Blueberry Coder Wednesday, February 12, 2014

    Thanks Vijay.

    JDeveloper can run smoothly on Linux, but we center our testing efforts on specific distributions: SUSE Linux and Oracle Enterprise Linux. By extension, it will also run well on Red Hat Enterprise Linux and CentOS.

    Unfortunately, Debian, Ubuntu and derivatives sometimes exhibit glitches not found in the distros I mentioned. What JDK and desktop environment (Gnome 2, Gnome 3, KDE, ...) are you using?


  • Maira K Saturday, November 15, 2014

    Excellent Tip! It worked for Yosimite as well !!!


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha
Oracle

Integrated Cloud Applications & Platform Services