Skip to content

Instantly share code, notes, and snippets.

@mattrasband
Last active August 29, 2015 14:13
Show Gist options
  • Save mattrasband/c6444ef4e2d31f75d005 to your computer and use it in GitHub Desktop.
Save mattrasband/c6444ef4e2d31f75d005 to your computer and use it in GitHub Desktop.
Eclim Launch Agent
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.eclipse.eclimd</string>
<key>OnDemand</key>
<false/>
<key>RunAtLoad</key>
<true/>
<key>EnvironmentVariables</key>
<dict>
<key>JAVA_HOME</key>
<string>/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home</string>
</dict>
<key>ProgramArguments</key>
<array>
<string>/Applications/eclipse/eclimd</string>
</array>
<key>ServiceDescription</key>
<string>Eclim Daemon</string>
<key>StandardErrorPath</key>
<string>/Users/matt/.eclimd.stderr</string>
<key>StandardOutputPath</key>
<string>/Users/matt/.climd.stdout</string>
<key>UserName</key>
<string>matt</string>
</dict>
</plist>
@mattrasband
Copy link
Author

Get the string for JAVA_HOME from echo $(/usr/libexec/java_home -v 1.8), where 1.8 is your java version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment