Langsung ke konten utama

Postingan

Menampilkan postingan dari Februari, 2026

How to make J2ME Apps On Termux

To make J2ME Apps or maybe games, you will need to install OpenJDK (done via `apt install openjdk-xx` xx is the version number), Download the CLDC&MIDP jar files (download them from  jarcasting ). Create a new java file for the main program, called HelloMIDlet.java: ``` import javax.microedition.lcdui.*; import javax.microedition.midlet.*; public class HelloMIDlet extends MIDlet {         private Display display;         private Form form;         public HelloMIDlet() {                 form = new Form("Hello World from J2ME!");         }         protected void startApp() {                 display = Display.getDisplay(this);                    form.append(new StringItem("Message:", "Hello, World!"));              ...