Friday Aug 26, 2011

Installing JDeveloper on Mac OS X Lion (10.7)

One of the more popular blog entries on my blog is the one that give the instructions for install JDeveloper on Mac.

This is quite surprising considering the low percentage of mac users that show on our JDev users statistics gathering system. 

It was based on instruction that were written by Marc Chanliau from our FMW security team - he just sent over a new set of instructions for those of you who are upgrading to Lion OS X 10.7. So here are Marc's instructions:

[Note - for those who don't feel like reading instructions there is now also a video showing installation steps for JDeveloper on Mac]

As you may know, Apple does not to ship JDK6 with OS X Lion. So you first need to get JDK6 installed on Lion, which is really easy. One way to install JDK6 on Lion is to simply enter java -version at a terminal prompt. If the JDK is not installed, you'll be prompted by Lion to download and install it (just follow the installation screens provided by Apple).

Now that you have JDK6 installed on Lion, you need to download and install JDeveloper.

(1) Download JDeveloper from here to your desktop.  (Choose the *generic* Studio Edition from the pull-down menu.)     

(2) Double-click on the package you just downloaded, which should be jdevstudio1112Oinstall.jar. Be patient because it may take a few moments for the first screen of the JDev Installer to come up.

(3) Follow the Installer's step. The tricky part is when you get prompted for providing the path to you local JDK. When you get there, just follow step (4) below.

(4) To make it easy for the JDev Installer to find the all Java libs it's looking for, you need to run the following bash script. Just copy the script below in a text editor and save the file as jdev_on_lion.sh (or any other name.sh you choose).  Here is the bash script:

#!/bin/bash 

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/java /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/java

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/javac /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/javac

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/javap /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/javap

ln -s /System/Library/Java/Support/Deploy.bundle/Contents/Home/bin/javaws /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/javaws

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/jar /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/jar

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/xjc /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/xjc

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/lib

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/classes/classes.jar /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/lib/tools.jar

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/bin

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/java /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/bin/java

mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/lib

ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/classes/classes.jar /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/lib/rt.jar

(5) Now that you've saved the script as described in step (4), you need to run it. Before running it, however, you need to change the file access permissions by entering the following command at a terminal prompt: chmod +x jdev_on_lion.sh

(6) You're ready to run the script. Enter the following command at a terminal prompt: ./jdev_on_lion.sh (if the bash shell complains that some permissions are (still) denied, just enter the command preceding it with "sudo" (you'll be required to enter your Mac password), that will always work!)

(7) Now you should see the JDK's path automatically entered in the JDev install screen. 

(8) You just need to follow the remaining JDev Installer steps to complete installation.

Thanks Marc.


Monday Apr 27, 2009

Installing JDeveloper 11g on Mac OS 10.5

This is actually a guest post - Marc Chanliau from the Oracle Web Service Manager product team sent me a quick email with instructions that he wrote up for installing JDeveloper on a macintosh - and I thought it would make a good blog post that might help people on OTN as well.

 Important Note - an update set of instructions for those installing JDeveloper on Mac Lion OS 10.7 is here.

So here we go with Marc's instructions for:

Installing JDeveloper 11gR1 on Mac OS 10.5 (Leopard)

- Download jdevstudio11110install.jar from OTN (11.1.1.0.2).

1. Make Java 6 the default JVM on your Mac
- Run Java Preferences (in /Applications/Utilities/Java)
- Move the Java SE 6 (64 Bit) to the top of the Java application versions
list

2. In order for the installer to see JKD 1.6 on your Mac, you need to create
a sym link for classes.jar:
cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
sudo mkdir jre
cd jre
sudo mkdir lib
cd lib
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/classes/classes.jar rt.jar

3. Run the JDev installer by clicking on the jdevstudio11110install.jar you
downloaded -- this should automatically start the JAR Launcher and unpack
libraries.

If you keep all recommended install default values, JDev and ADF are installed
at:
/users/yourusername/oracle/middleware/jdeveloper
WebLogic Server gets installed at:
/users/yourusername/oracle/middleware/wlserver_10.3

4. To start JDev, you can create an alias in your .profile file as follows:
alias startjdev="/users/yourusername/oracle/middleware/jdeveloper/jdev/bin/jdev"

About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

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