From bc83e943d127708fa564931a4c61a4336e8fe76a Mon Sep 17 00:00:00 2001 From: RandomSearch <101704343+RandomSearch18@users.noreply.github.com> Date: Mon, 10 Feb 2025 16:18:06 +0000 Subject: [PATCH 1/4] Quick copyedit of the guide --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2d31df4..94d2249 100644 --- a/README.md +++ b/README.md @@ -2,42 +2,44 @@ If you're not from hackclub and you're trying to build a j2me application in 2025, I question your motives but heres the most up to guide on the internet for it. ## Install a 32 bit JDK -Extract [this](https://files.mercurywork.shop/rafflesia/java-8-openjdk-32.tar.gz) tarball file and move its contents into /usr/lib/jvm/java-8-openjdk-32. +Download and extract [java-8-openjdk-32.tar.gz](https://files.mercurywork.shop/rafflesia/java-8-openjdk-32.tar.gz) and move its contents into `/usr/lib/jvm/java-8-openjdk-32`, e.g. with `sudo tar -xzf java-8-openjdk-32.tar.gz --directory=/usr/lib/jvm/` + Set it as your default jre with `sudo archlinux-java set java-8-openjdk-32` # Enable Multilib -* I don't know exactly what you need installed but you need lib32-libxtst for sure +* I don't know exactly what you need installed but you need `lib32-libxtst` for sure # Download sun-wtk from the AUR * Self explanatory # Download these plugins -1. Download [*this*](https://files.mercurywork.shop/rafflesia/oracle-jmesdk-3-4-rr-nb-plugins.zip) zip file -2. extract this file +1. Download [oracle-jmesdk-3-4-rr-nb-plugins.zip](https://files.mercurywork.shop/rafflesia/oracle-jmesdk-3-4-rr-nb-plugins.zip) +2. Extract this file 3. You'll use this later ## Installing Mobility Install Netbeans 8.2. This requires an oracle account so I posted it here. 1. Run the installer I linked [here](https://files.mercurywork.shop/rafflesia/netbeans-8.2-linux.sh) 2. When asked for jvm, use the java-8-openjdk-32 you installed -3. finish installation +3. Finish installation 4. Open tools > plugins 5. Install the **Mobility** Plugin ## Installing the other plugins you need (Painful) 1. Go back to Tools > Plugins 2. Open the Downloaded tab -3. click Add Plugins +3. Click Add Plugins 4. Select all the plugins from the zip file you used earlier. Some of them will give you an error. unselect these and try again until you have all the plugins you *can* install ## Setting the platform 1. Go back to the main page and select Tools > Java Platforms -2. Click `Add Platform` +2. Click Add Platform 3. Select Platform Type: Java ME CLDC Emulators 4. Select `/opt/sun-wtk` 5. Proceed and finish + ### Note: -If this fails, try setting your WTK_JRE_PATH="/usr/lib/jvm/java-8-openjdk-32/" environment variable, and then launching netbeans. If this works, you can add it to /etc/environment +If this fails, try setting your `WTK_JRE_PATH="/usr/lib/jvm/java-8-openjdk-32/"` environment variable, and then launching netbeans. If this works, you can add it to `/etc/environment` ## Creating your first project * The examples plugin didn't install for you most likely, but I have extracted the Samples and put them in `Samples/` of this repo From 7e385785a39a0291e6d5d92b40e91218c2ee0ac6 Mon Sep 17 00:00:00 2001 From: Neal Shah <30693865+ProgrammerIn-wonderland@users.noreply.github.com> Date: Mon, 10 Feb 2025 18:20:40 -0500 Subject: [PATCH 2/4] What plugins dont work -- execstack --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 94d2249..49fb232 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,9 @@ Download and extract [java-8-openjdk-32.tar.gz](https://files.mercurywork.shop/r Set it as your default jre with `sudo archlinux-java set java-8-openjdk-32` # Enable Multilib -* I don't know exactly what you need installed but you need `lib32-libxtst` for sure +* I don't know exactly what you need installed but libraries reported to me include +* `lib32-libxtst` +* `lib32-libxrender` # Download sun-wtk from the AUR * Self explanatory @@ -25,11 +27,17 @@ Install Netbeans 8.2. This requires an oracle account so I posted it here. 4. Open tools > plugins 5. Install the **Mobility** Plugin -## Installing the other plugins you need (Painful) +## Installing the other plugins you need 1. Go back to Tools > Plugins 2. Open the Downloaded tab 3. Click Add Plugins -4. Select all the plugins from the zip file you used earlier. Some of them will give you an error. unselect these and try again until you have all the plugins you *can* install +4. Select all the plugins from the zip file you used earlier except for the following: + * Java ME SDK CPU Profiler Snapshot Viewer + * Profiler (Java ME Projects Support) + * Profiler Ant Support + * Toolbar core + * Java ME SDK Welcome Screen. +5. Install these plugins ## Setting the platform 1. Go back to the main page and select Tools > Java Platforms @@ -45,6 +53,9 @@ If this fails, try setting your `WTK_JRE_PATH="/usr/lib/jvm/java-8-openjdk-32/"` * The examples plugin didn't install for you most likely, but I have extracted the Samples and put them in `Samples/` of this repo * You can also just create a new project (Box icon), select Java ME, and have your fun that way +## Fixing the inbuilt emulator +* I recommend just running Microemulator as its less problematic but the inbuilt emulator can usually be fixed by running `sudo execstack -c /opt/sun-wtk/bin/*.so`. This requires the aur package https://aur.archlinux.org/packages/execstack. Some people report still having issues with Malloc, this seems to be system dependent. + ## Notes: * The run button is broken, install microemulator and build every time you need to run, running `microemulator (yourthing).jad` in the commandline * If you have images to submit to this guide, open a github issue and I'll be happy to add them From 0f63f691436b63e8f8b137cc1849ef790669e4f0 Mon Sep 17 00:00:00 2001 From: RandomSearch <101704343+RandomSearch18@users.noreply.github.com> Date: Thu, 20 Feb 2025 23:13:29 +0000 Subject: [PATCH 3/4] Fix punctuation in introduction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 49fb232..b1a1ce0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Welcome hackclub retrospect refugees! -If you're not from hackclub and you're trying to build a j2me application in 2025, I question your motives but heres the most up to guide on the internet for it. +If you're not from hackclub and you're trying to build a j2me application in 2025, I question your motives, but here's the most up to guide on the internet for it. ## Install a 32 bit JDK Download and extract [java-8-openjdk-32.tar.gz](https://files.mercurywork.shop/rafflesia/java-8-openjdk-32.tar.gz) and move its contents into `/usr/lib/jvm/java-8-openjdk-32`, e.g. with `sudo tar -xzf java-8-openjdk-32.tar.gz --directory=/usr/lib/jvm/` From 85e3e13b93b4175ba079bd3d2f566b719ea93985 Mon Sep 17 00:00:00 2001 From: RandomSearch <101704343+RandomSearch18@users.noreply.github.com> Date: Fri, 21 Feb 2025 10:43:53 +0000 Subject: [PATCH 4/4] a couple more consistency fixes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b1a1ce0..3c62b0b 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Install Netbeans 8.2. This requires an oracle account so I posted it here. 1. Run the installer I linked [here](https://files.mercurywork.shop/rafflesia/netbeans-8.2-linux.sh) 2. When asked for jvm, use the java-8-openjdk-32 you installed 3. Finish installation -4. Open tools > plugins +4. Open Tools > Plugins 5. Install the **Mobility** Plugin ## Installing the other plugins you need @@ -36,7 +36,7 @@ Install Netbeans 8.2. This requires an oracle account so I posted it here. * Profiler (Java ME Projects Support) * Profiler Ant Support * Toolbar core - * Java ME SDK Welcome Screen. + * Java ME SDK Welcome Screen 5. Install these plugins ## Setting the platform