Renewing SPSS for Mac License Silently – Update

I previously wrote about a script to license SPSS for Mac silently. In version 25 of SPSS Statistics, the path to the bundled Java has changed. It now no longer has the version of the JRE in the path. As a result the script now looks like this :

#!/bin/bash -x

VERSION=25
AUTHCODE=<redacted>

APPPATH="/Applications/IBM/SPSS/Statistics/$VERSION/SPSSStatistics.app/"
cd "$APPPATH/Contents/bin"

"$APPPATH/Contents/JRE/bin/java" -jar "$APPPATH/Contents/bin/licenseactivator.jar" SILENTMODE CODES=$AUTHCODE

If SPSS keeps a consistent path to the bundled Java, it will make it a little bit easier to update the script for each new version of SPSS Statistics.

2 thoughts on “Renewing SPSS for Mac License Silently – Update

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.