MacJava! Tutorial Commands ========================== If you don't like reading instructions, run through the whole tutorial by just pasting the commands below into the terminal. Notes: 1) Be sure you have the latest JDK installed first. 2) When the ShowTime application is launched, quit the application to continue on with the remaining commands. 3) For details visit: https://centerkey.com/mac/java Copy-and-paste commands ----------------------- echo Start java -version mkdir showtime cd showtime curl --remote-name https://centerkey.com/mac/java/ShowTime.java cat ShowTime.java javac ShowTime.java ls -l echo "Main-Class: ShowTime" > MainClass.txt cat MainClass.txt jar cmfv MainClass.txt ShowTime.jar *.class ls -l java -jar ShowTime.jar #manually quit application to continue curl --remote-name https://centerkey.com/mac/java/ShowTime.png sips -z 100 100 -p 150 150 ShowTime.png --out ShowTime-background.png mkdir ShowTime.iconset sips -z 128 128 ShowTime.png --out ShowTime.iconset/icon_128x128.png iconutil --convert icns ShowTime.iconset ls -l mkdir -p package/macosx cp -v *.png *.icns package/macosx jdk=$(/usr/libexec/java_home) $jdk/bin/javapackager -version $jdk/bin/javapackager -deploy -native pkg -name ShowTime \ -BappVersion=1.0.0 -Bicon=package/macosx/ShowTime.icns \ -srcdir . -srcfiles ShowTime.jar -appclass ShowTime \ -outdir out -v cp out/ShowTime-*.pkg show-time-installer.pkg ls -l open show-time-installer.pkg echo Done -----------------------