Di sistem operasi Windows java environment sudah di kenali dengan baik oleh JDeveloper. Sedangkan di Mac OS, kita perlu menambahkan symbolic link pada classes.jar
Bagaimana caranya ?
Sebelum kita memulai instalasi pastikan JDK6 sudah terinstall. Sedangkan langkah-langkah instalasi JDeveloper di Mac OS adalah sebagai berikut :
- Download JDeveloper disini.
- Jalankan script berikut ini dengan perintah sudo
#!/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
- Klik dua kali jdev installer yang telah kita download.
- Baca dan ikuti proses instalasi hingga selesai.
Apabila saat pemilihan JDK tidak diketemukan,
Pilih tombol Browse, lalu arahkah path-nya disini :
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/jdk6/
No comments:
Post a Comment