help, errors when i try to start the game

Last login: Wed Oct 16 20:41:55 on ttys001
________-MacBook-Pro:FetishMaster_0_985d ____$ ./
Java home: /Library/Java/JavaVirtualMachines/jdk-13.jdk/Contents/Home
Version: 13
Relative path for game resources: gamedata
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.rits.cloning.Cloner (file:/Users/____/Downloads/FetishMaster_0_985d/dist/lib/cloning-1.9.1.jar) to field java.util.TreeSet.m
WARNING: Please consider reporting this to the maintainers of com.rits.cloning.Cloner
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Absolute path for game resources: /Users/____/Downloads/FetishMaster_0_985d/gamedata
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
	at org.mvel2.optimizers.OptimizerFactory.<clinit>(
	at fetishmaster.engine.GameEngine.initGameEngine(
	at fetishmaster.engine.GameEngine.initNewGame(
	at fetishmaster.display.JDialogStartSplash.jButtonStartActionPerformed(
	at fetishmaster.display.JDialogStartSplash.access$200(
	at fetishmaster.display.JDialogStartSplash$3.actionPerformed(
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
	at java.desktop/java.awt.Component.processMouseEvent(
	at java.desktop/javax.swing.JComponent.processMouseEvent(
	at java.desktop/java.awt.Component.processEvent(
	at java.desktop/java.awt.Container.processEvent(
	at java.desktop/java.awt.Component.dispatchEventImpl(
	at java.desktop/java.awt.Container.dispatchEventImpl(
	at java.desktop/java.awt.Component.dispatchEvent(
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(
	at java.desktop/java.awt.Container.dispatchEventImpl(
	at java.desktop/java.awt.Window.dispatchEventImpl(
	at java.desktop/java.awt.Component.dispatchEvent(
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(
	at java.desktop/java.awt.EventQueue$
	at java.desktop/java.awt.EventQueue$
	at java.base/
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/java.awt.EventQueue$
	at java.desktop/java.awt.EventQueue$
	at java.base/
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/java.awt.EventQueue.dispatchEvent(
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/
Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
	at java.base/java.lang.String.checkBoundsBeginEnd(
	at java.base/java.lang.String.substring(
	at org.mvel2.compiler.AbstractParser.setupParser(
	at org.mvel2.compiler.AbstractParser.<clinit>(
	... 41 more
________-MacBook-Pro:FetishMaster_0_985d ____$

The game was built for Java 6 and doesn’t actually seem to function on newer versions of Java. Java 8 might be the latest version to support the game properly, and it looks like you’re using Java 13.

Frankly I don’t use macOS enough to tell you much about installing older versions of Java. It seems like there’s a download of the Java 6 runtime directly from Apple, although I don’t know about whether newer versions of macOS actually support it. You can download Oracle’s Java 8 release through their website (look for the .dmg file).

With the source code available and ‘classic’ Java on life support, it’s probably well past time someone got the code updated for compliance with newer versions, even if it meant breaking the game on old versions of Java. Most of the errors there are being thrown by external libraries, from what I can tell, but I’m guessing it’s not going to be as simple as updating them and rebuilding. I might start poking at that this weekend.

EDIT: Actually, it might just be that it’s broken with OpenJDK versus Oracle’s Java implementation; I believe macOS defaults to OpenJDK, and that’s what I’ve generally been using on my Linux machine. It still seems to work with Oracle’s version of Java 13 (still with cloning warnings, but not outright errors), so feel free to try that rather than installing an older version of Java.

1 Like

There’s a note on the git that MVEL doesn’t work with Java 12, let alone 13, so I think @jimbobvii has it right. Drop back to Java 8 and try again.