This project is a decompilation of the 2005 Sonic The Hedgehog: Part One which is the J2ME partial port of Sonic The Hedgehog.
To run and compile the game, you should install the following:
Also, you need to add an environment variable WTK_HOME
pointing to the wtk folder (example: <WTK installation folder>\JavaME_SDK_CLDC\WTK2
).
Visual Studio Code is the recommanded editor to develop on this project.
Since using Language Support for Java extension need Java 17, you need to install JDK 17. Once installed, update your environment variable
JAVA_HOME
to use JDK 17 and addJAVA_HOME_8
to use JDK 8. This is used bybuild.bat
script to use the correct Java version to compile your app.
- Run
.\build.bat
- You should have
sonic.jar
at the workspace root folder. Update thesonic.jad
with your text editor and update theMIDlet-Jar-Size
to the jar size (on Windows: right click onsonic.jar
-> properties -> there you have size). - Launch the game with
.\run.bat
- Run
.\build.bat
- Launch the emulator using
.\debug.bat
- On vscode, in the
Run and Debug
launch the debug to attach the debugger (you can also press F5)