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!

Comments:

Thank you. This worked for me!

Posted by guest on December 20, 2012 at 08:11 AM EST #

Great post. Thanks!

Posted by Mark on January 30, 2013 at 02:10 AM EST #

Life saver!

Posted by Wim on February 08, 2013 at 05:02 AM EST #

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

Posted by guest on March 19, 2013 at 07:30 AM EDT #

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.

Posted by Blueberry Coder on March 19, 2013 at 08:52 AM EDT #

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!

Posted by guest on August 10, 2013 at 08:47 PM EDT #

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.

Posted by Vijay Polsani on February 11, 2014 at 05:37 PM EST #

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?

Posted by Blueberry Coder on February 12, 2014 at 08:25 AM EST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Frédéric Desbiens

The musings of a member of the ADF Product Management team.

I focus here on my favorite development framework but also have a strong interest in Mobile Development, Oracle WebCenter and Oracle SOA Suite.

Attentive readers will even find posts about IT Strategy from time to time, an interest of mine since I completed my MBA in 2006.

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today