j2meDash is a demake version of Geometry Dash ported to Java ME (or J2ME) for Java-supported phones
- This project is still experimental and is in its: BETA phase.
- I have only built support for Nokia Asha 311 phone model (resolution 240x400). As for other models, I will add them later in the
test-resolution-compatibilitybranch.
- Java 1.4 SDK and/or Java 8 SDK (recommend JDK 1.4.2_19 and/or JDK 8u202)
- Java ME SDK (recommend JDK ME 3.4)
- Sun Java Wireless Toolkit (recommend WTK 2.5.2_01)
All can be obtained on Oracle's official website or by using the links listed below
Links:
You need to log in your Oracle account to download
NOTE:
- if you're using Windows, download the
.exefiles - if you're using Linux, idk
- if you're using Mac, use a Virtual Machine
From there, click the .exe file to install all four of the SDK
- Step 1: Clone the repository (if you haven't already) using
git clone https://github.com/mnp075075/j2meDash - Step 2: Navigate to the project's directory in your terminal (Command Prompt), in this case it's
j2meDash/src/usingcd - Step 3: Compile
j2meDash.java- 3.1: You can compile the source code automatically by running
compile.bat:- You'll be prompted to input a number corresponding to the version of Java you wanted to compile with
1for Java 1.4, generatingj2meDash4.jar2for Java 8, generatingj2meDash8.jar3for both versions of Java above
- 3.2: Alternatively you can also type each command individually:
- 3.2.0: Create a new folder named
classes\inside thesrc\directory by doing it manually or typemkdir classesin the Command Prompt (with its dir set to thesrc\>) - FOR JAVA 1.4 or JAVA 4
- 3.2a.1: Compile
*.classfile
"C:\[your Java 1.4 SDK directory]\bin\javac.exe" -encoding UTF-8 -source 1.3 -target 1.3 -bootclasspath C:\[your WTK directory]\lib\midpapi20.jar;C:\[your WTK directory]\lib\cldcapi11.jar -d classes *.java- 3.2a.2: Preverify
*.classfile to ensure compatibility with older phones
"C:\[your Jave ME SDK directory]\bin\preverify.exe" -classpath classes;C:\[your WTK directory]\lib\midpapi20.jar;C:\[your WTK directory]\lib\cldcapi11.jar -d classes classes\.- 3.2a.3: Package all into a
*.jarfile
"C:\[your Java 1.4 SDK directory]\bin\jar.exe" cfm j2meDashForJava4.jar META-INF\MANIFEST.MF assets levels -C classes . - 3.2a.1: Compile
- FOR JAVA 8
- 3.2b.1: Compile
*.classfile
"C:\path\to\JDK_8\bin\javac.exe" -encoding UTF-8 -classpath "C:\[your Java ME SDK directory]\lib\*" -d classes\ *.java- 3.2b.2: Package all into a
*.jarfile
"C:\path\to\JDK_8\bin\jar.exe" cfm j2meDashForJava8.jar META-INF\MANIFEST.MF assets levels -C classes/ . - 3.2b.1: Compile
- 3.2.0: Create a new folder named
- 3.1: You can compile the source code automatically by running
- i'm being lazy
- download a virtual machine and run Windows on there
After you successfully compiled the code, there'll be a new file named j2meDashForJava4.jar or j2meDashForJava8.jar. You can run it using an emulator like FreeJ2ME, FreeJ2ME-plus, etc based on your operating system
Most emulators aren't reliable at running this .jar file so just put it on a J2ME-supported phone
NOTE: You should limit the emulator's FPS to around 30-60 to play smoothly
- will be updated later
- do it yourself