Enter your email address:

Delivered by FeedBurner

Not Now

Saturday, May 30, 2015

JSK Installation on MAC OS X(Yosemite)

After recent Yosemite update, I am seeing lot of queries relating to Jump Start Kit installation on Mac. So thought of writing this post with steps not only to installation and but configuring JSK for a successful setup.

Environment -

  • OS - MAC OS X Yosemite(10.10.3)
  • JDK  - 1.7.0_67(1.8 is not supported and it might not work; I have included steps to run JSK on JDK 1.7 even if JAVA_HOME is set to 1.8 at system level)
  • JSK - 11.1.1.8.0
Click "Next"

Click "Next"

Click "Next"

Click Next

Choose installation directory and click "Next"




Click "Yes" twice on the above screen

Click "Next"

Click "Done"

  • Go to JSK installation directory(Default directory is(/Users/<UserNAME>/Library/Oracle/JSK/11.1.1.8.0.app) and open the app. If working ignore below steps.
  • Right click on the app and Select show package contents.
  • Open terminal and execute run.sh available in the above location.
  • If you see any warnings like "JAVA JRE detected.Switch to JAVA JDK". Then open the run.sh in an editor and add the following lines.
    • DISPLAY=":0"
    • JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home"
      • Note- JAVA_HOME path should be pointing to a JDK 1.7 directory.
    • In the last few lines of run.sh, you will find,
# start the JSK
if [ $# -eq 2 ];
    then
# case of passing arguments <path>:<config to load>:<port>
$JAVA_BIN -Xms128m -Xmx512m -Djava.io.tmpdir=$TEMP -Dfile.encoding=UTF-8 -Dhome=$HOME -Ddisplay=$DISPLAY $1 -classpath JSK_Data/log4j-1.2.16.jar:JumpStartKit-11.1.1.8.0.jar oracle.fatwire.sites.jsk.Execute
    else
# case where no arguments where passed
$JAVA_BIN -Xms128m -Xmx512m -Djava.io.tmpdir=$TEMP -Dfile.encoding=UTF-8 -Dhome=$HOME -Ddisplay=$DISPLAY -classpath JSK_Data/log4j-1.2.16.jar:JumpStartKit-11.1.1.8.0.jar oracle.fatwire.sites.jsk.Execute
fi
    • Modify it as below(ensure tools.jar is present in the location),

# start the JSK
if [ $# -eq 2 ];
    then
# case of passing arguments <path>:<config to load>:<port>
$JAVA_BIN -Xms128m -Xmx512m -Djava.io.tmpdir=$TEMP -Dfile.encoding=UTF-8 -Dhome=$HOME -Ddisplay=$DISPLAY $1 -classpath $JAVA_HOME/lib/tools.jar:JSK_Data/log4j-1.2.16.jar:JumpStartKit-11.1.1.8.0.jar oracle.fatwire.sites.jsk.Execute
    else
# case where no arguments where passed
$JAVA_BIN -Xms128m -Xmx512m -Djava.io.tmpdir=$TEMP -Dfile.encoding=UTF-8 -Dhome=$HOME -Ddisplay=$DISPLAY -classpath $JAVA_HOME/lib/tools.jar:JSK_Data/log4j-1.2.16.jar:JumpStartKit-11.1.1.8.0.jar oracle.fatwire.sites.jsk.Execute
fi
    • Save and execute run.sh. Your JSK should be working now.
  • Sometimes JSK fails due to multicast mac port issue, if you find errors relating to port allocation issues in catalina.out or log. Add the below entry in catalina.sh 
    • JAVA_OPTS="-Djava.net.preferIPv4Stack=true"
Now its time to code using your JSK!!! Happy Coding...