Running LDSTechIDE on Open JDK7 on OSX

A few hacks are required to get the LDS Tech IDE running on the (now finally released) JDK 7 on a Mac. These instructions are for running the IDE on JDK 7, not configuring your project to compile with JDK 7. The latter works properly and is mutually exclusive of the topic of this article.

Install Open JDK 7

Download and install JDK 7 from here

Set JDK 7 as the default

Run the "Java Preferences" app to move JDK 7 to the top of the list so it will be used by default. However this does not effect Eclipse as of Lion 10.6.3 with JDK7 u4 (and other combinations) because of this Eclipse bug. Instead (or in addition), follow the instructions below which are modified slightly from these instructions.

Apply the Hack

First create in your /Applications folder by...

open a terminal window then

cd /Applications
chmod +x
open should open in an editor - if not, make it so and and add the following contents and save and close...

export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home

java \
-showversion \
-XX:MaxPermSize=384m \
-Xms40m \
-Xmx768m \
-Xdock:icon=../Resources/lds-tech.icns \
-XstartOnFirstThread \
-Dorg.eclipse.swt.internal.carbon.smallFonts \
-Dosgi.requiredJavaVersion=1.5 \ \

You may need to modify the LAUNCHER_JAR path if your LDS Tech IDE is not installed in /Applications. Also, if you've tweaked out your memory or other settings, apply those tweaks here in also.

At this point you should be able to launch the LDS Tech IDE using the shell script - try it now and resolve any issue before proceeding.

Make an Application of it

Now to make this script into an application. Open a terminal window or reuse the previous one and...

cd /Applications
mkdir -p "LDS Tech"
cp "LDS Tech Tech IDE"
chmod +x "LDS Tech Tech IDE"

You now have an application named LDS Tech IDE. Close LDS Tech if it's open and launch this new application. If it's working you can now delete the schell script.

To beautify the app with an icon...

  • Navigate in finder to /Applications/LDSTech/eclipse and "Get Info" on "lds-tech"
  • Click the "T" icon in the upper left corner and press Command-c to copy it
  • Navigate in finder to /Applications/ and "Get Info" on "LDS Tech IDE"
  • Click the icon in the upper left corner and press Command-v

OSX recognizes this as a real application so you can "Keep in Dock" just like any other.


  • You will not be able to "Switch Worksapce" because "unable to relaunch the platform because the eclipse.vm property has not been set". My attempts to fix that have failed.
  • If you want to rename the new application you'll need to also rename the shell script inside to match. This can be useful if you want to have 2 copies of the IDE running at the same time which also may reduce your need to switch workspaces.
  • If you don't create an "application" from your shell script the terminal window you used to launch must stay open until you close eclipse unless you launch it in the background by placing the ampersand at the end of the command.
  • Please vote on the eclipse bug to increase it's priority in the queue
  • Whenever you use or the new LDS Tech IDE app we just created to launch the LDSTech IDE it will run under JDK7. If you launch it another way it will run under your other JDK (1.6)

Your comments and suggestions are welcome

This page was last modified on 30 April 2012, at 09:24.

Note: Content found in this wiki may not always reflect official Church information. See Terms of Use.