A simple fix that allows you to run demo of Dread Dawn. The copyright belongs to the original authors.
I checked it works on: JRE 17 by Adoptium and OpenJFX. After installing JavaFX, go to where you installed it and rename javafx-swt.jar on javafx.swt.jar in the lib folder.
- Download the Game.jar and move it to the Dread Dawn root folder
- Create a start.bat and paste this:
<Path to java.exe> --module-path <Path to JavaFX\lib> --add-modules javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.web,javafx.swt -jar Game.jar
- Run start.bat and enjoy the demo
- You need to copy the jav.jar from the Temp folder while the original exe file is running.
- Open the jav.jar as an archive and extract from the Game folder MyPanel.class and ReaderImage.class
- You need to open these files in any Java bytecode editor.
- Find the bytecode: sipush 2024, change it to: sipush 3024, and save it.
- Return these files back to jav.jar and rename jav.jar in Game.jar
- Move it to the Dread Dawn root folder
- Create a start.bat and paste this:
<Path to java.exe> --module-path <Path to JavaFX\lib> --add-modules javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.web,javafx.swt -jar Game.jar
- Run start.bat and enjoy the demo