Skip to content

Commit

Permalink
16 Oct 2015 - Updated Mac Launcher for OS X 10.11 (El Capitan)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn E. Gano committed Oct 16, 2015
1 parent 60d8b79 commit 616fc3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Binary file modified JSatTrak_Mac.app.zip
Binary file not shown.
13 changes: 10 additions & 3 deletions Mac_OSX_notes.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Mac Notes: requires the Apple provided Java 1.6 and not oracle's java 1.7. The Apple version performs much better overall.
Mac Notes: requires the Apple provided Java 1.6 and not oracle's java 1.7/8. The Apple version performs much better overall.

To revert follow these guides:

Apple's latest version (2015): https://support.apple.com/kb/DL1572?locale=en_US

http://support.apple.com/kb/HT5559

http://www.java.com/en/download/help/mac_uninstall_java.xml
Expand All @@ -10,18 +12,23 @@ http://www.java.com/en/download/help/mac_uninstall_java.xml

ALSO:

To use JSatTrak on a mac you need to have Apple's java 6 installed on your system. If you don't follow these directions: (note you can have both Java 6 and 7 installed at the same time):
To use JSatTrak on a mac you need to have Apple's java 6 installed on your system. If you don't follow these directions: (note you can have both Java 6 and 7/8 installed at the same time):
http://support.apple.com/kb/DL1572

Then you can run the file "JSatTrak_Mac.app" to run JSatTrak properly (as long as they are in the same directory).

or you can use this command from the command line:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java -jar JSatTrak.jar

or for OS X 10.11:
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java -jar JSatTrak.jar



--------------------------------------------
Applescript used in "JSatTrak_Mac.app" (Using AppleScriptEditor)
--------------------------------------------

set path_ to (path to me)tell application "Finder" set theFolder to (container of item path_)end tellset thePOSIXFolder to ((POSIX path of (theFolder as alias)) as string)#set theFolderPathWithOutLastSlash to text 1 thru -2 of thePOSIXFolder# this was a long way and didn't load the java environment paths properly#set run_jsattrak_command to "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java -Djava.library.path=\"" & thePOSIXFolder & "\" -Duser.dir=\"" & theFolderPathWithOutLastSlash & "\" -jar " & thePOSIXFolder & "JSatTrak.jar &"# first navigate to the directory where the jar isset changeDir to "cd " & thePOSIXFolder# run JSatTrak with the java 6 JRE (launching from the right directory will set all the java environment paths correctly) set run_jsattrak_command to "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java -jar JSatTrak.jar &"tell application "Terminal" #do script run_jsattrak_command do script changeDir & ";" & run_jsattrak_command --"java -jar JSatTrak.jar &"end tell
set path_ to (path to me)tell application "Finder" set theFolder to (container of item path_)end tellset thePOSIXFolder to ((POSIX path of (theFolder as alias)) as string)#set theFolderPathWithOutLastSlash to text 1 thru -2 of thePOSIXFolder# this was a long way and didn't load the java environment paths properly#set run_jsattrak_command to "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java -Djava.library.path=\"" & thePOSIXFolder & "\" -Duser.dir=\"" & theFolderPathWithOutLastSlash & "\" -jar " & thePOSIXFolder & "JSatTrak.jar &"# first navigate to the directory where the jar isset changeDir to "cd " & thePOSIXFolder# run JSatTrak with the java 6 JRE (launching from the right directory will set all the java environment paths correctly)
# SEG 16-Oct-2015 in OSX 10.11 changed path from /System/Library/... to /Library/....set run_jsattrak_command to "/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java -jar JSatTrak.jar &" tell application "Terminal" #do script run_jsattrak_command do script changeDir & ";" & run_jsattrak_command --"java -jar JSatTrak.jar &"end tell

Expand Down

0 comments on commit 616fc3e

Please sign in to comment.