Open xmonfort opened 1 year ago
Getting the same issue for me as well.
I had the same issue and this fixed it for me:
./jre/bin/java -jar ./jar/MegaBasterd.jar
If that still doesn't work uninstall it and download the zip and try to use it again
Worked for me using Java 8 from adoptopenjdk-8.jdk.
brew install --cask adoptopenjdk/openjdk/adoptopenjdk8
Had to specify the Java path in order to use this specific version. Something like:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
$JAVA_HOME/bin/java -jar MegaBasterd_7.74.jar
Incase anyone is trying to do this on Mac (Ventura)… this is what you need to do:
If it still doesn't work, try this:
Play around with these information and it should work. If not… then good luck on your quest, my pirate soldier!
Since running the MegaBasterd.jar causes the first error about getConn,
I investigated it, and found that all that's required to make it run was only upgrade the SQLite library to the latest version that has support for Apple Silicon.
The current version being used is 3.25.2, from 2018, aka, before Apple Silicon release.
The dependency org.xerial:sqlite-jdbc should be upgraded to a later version, dunno which was the initial version with Apple Silicon support, but I've rebuilt it using 3.43.0.0 and it works fine.
when I try to run Megabaster on Macbook with Mac OS 13 (Ventura) I get this result:
sudo java -jar ./jar/MegaBasterd.jar Jun 19, 2023 10:14:44 PM com.tonikelope.megabasterd.SqliteSingleton getConn SEVERE: Error opening connection Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.sql.Connection.createStatement()" because "conn" is null at com.tonikelope.megabasterd.DBTools.setupSqliteTables(DBTools.java:33) at com.tonikelope.megabasterd.MainPanel.(MainPanel.java:258)
at com.tonikelope.megabasterd.MainPanel.main(MainPanel.java:136)
And the programa crashes and doesn't run.
best wishes.