Skip to content

Instantly share code, notes, and snippets.

@takumakei
Created February 4, 2013 03:59
Show Gist options
  • Save takumakei/4704943 to your computer and use it in GitHub Desktop.
Save takumakei/4704943 to your computer and use it in GitHub Desktop.
How do I run Eclipse using Oracle's new 1.7 JDK for the Mac ?
#!/bin/sh
#
ECLIPSE_APP=$(cd $(dirname "$0"); cd ../..; pwd)
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home
$JAVA_HOME/bin/java \
-showversion \
-XX:MaxPermSize=256m \
-Xms1536m \
-Xmx1536m \
-Xdock:icon=$ECLIPSE_APP/Contents/Resources/Eclipse.icns \
-XstartOnFirstThread \
-Dorg.eclipse.swt.internal.carbon.smallFonts \
-Dosgi.requiredJavaVersion=1.5 \
-jar $ECLIPSE_APP/../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar \
-showsplash org.eclipse.platform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment