Skip to content

Latest commit

 

History

146 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

j2meDash

j2meDash is a demake version of Geometry Dash ported to Java ME (or J2ME) for Java-supported phones

Warning

  • 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-compatibility branch.

Prerequisites

  • 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 .exe files
  • 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

Compilation (why)

WINDOWS USERS:

  • 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/ using cd
  • 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
      • 1 for Java 1.4, generating j2meDash4.jar
      • 2 for Java 8, generating j2meDash8.jar
      • 3 for 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 the src\ directory by doing it manually or type mkdir classes in the Command Prompt (with its dir set to the src\>)
      • FOR JAVA 1.4 or JAVA 4
        • 3.2a.1: Compile *.class file

        "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 *.class file 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 *.jar file

        "C:\[your Java 1.4 SDK directory]\bin\jar.exe" cfm j2meDashForJava4.jar META-INF\MANIFEST.MF assets levels -C classes .

      • FOR JAVA 8
        • 3.2b.1: Compile *.class file

        "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 *.jar file

        "C:\path\to\JDK_8\bin\jar.exe" cfm j2meDashForJava8.jar META-INF\MANIFEST.MF assets levels -C classes/ .

LINUX AND ONLINE USERS:

  • i'm being lazy

MAC USERS:

  • download a virtual machine and run Windows on there

Running

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

Controls:

  • will be updated later

Cleaning up:

  • do it yourself

About

a demake version of Geometry Dash on j2me

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages