FreeJ2ME-Plus
FreeJ2ME-Plus emulates Java J2ME. It reads 3 files, 1 of them required: without a required file it does not start games.
About this profile
Install this emulator's files
The installer finds the setup and its BIOS folder, then downloads only the files this emulator reads there and checks each one.
Open Start. Type PowerShell, press Enter. Click Copy. Right-click to paste. Press Enter.
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator freej2me_plusPress Cmd+Space. Type Terminal, press Return. Click Copy. Press Cmd+V. Press Return.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator freej2me_plusOpen a terminal, often with Ctrl+Alt+T. Click Copy. Press Ctrl+Shift+V. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator freej2me_plusHold power, pick Switch to Desktop. Open Konsole. Click Copy. Press Ctrl+Shift+V. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator freej2me_plusInstall Termux, a terminal app. Paste the line. Press Enter. Accept the Python install and allow the storage access Android asks for.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator freej2me_plusOpen a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator freej2me_plusTechnical notes
Fork of FreeJ2ME adding phone-specific APIs (Siemens, Nokia, Motorola, KDDI, SKT, DoJa, JBlend, Mascot Capsule V3, M3G), KJX loading and more core options. The native core is a C bridge: retro_init reads the system directory, checks that freej2me_plus-lr.jar exists there and spawns java -jar with the file encoding and the screen size as arguments, then drives the Java process over pipes. Windows launches javaw through CreateProcess with the system directory as starting directory, while Linux and macOS fork, chdir() into it and execvp() java. A Java runtime must be on the host PATH, and the start failure message asks for Java 6 or newer. The jar is built by ant from build.xml, which writes the libretro variant as freej2me_plus-lr.jar. ref: src/libretro/freej2me_libretro.c:39-46, src/libretro/freej2me_libretro.c:875-904, src/libretro/freej2me_libretro.c:1567-1593, src/libretro/freej2me_libretro.c:1690-1699, src/libretro/freej2me_libretro.h:80, build.xml:86-99
Only existence is tested. When the jar is absent the core posts the SYSTEM_NOT_FOUND message and returns from retro_init before any process is created, so nothing loads. The message text still names freej2me-lr.jar, the file the original core opens. This core opens freej2me_plus-lr.jar. ref: src/libretro/freej2me_libretro.c:340-347, src/libretro/freej2me_libretro.c:867-873, src/libretro/freej2me_libretro.h:73-79
Every relative path the jar opens resolves against the system directory, since the Java process starts there. freej2me_system/ is created on first run and holds freej2me.conf (written with defaults when missing, then overridden by the core options the bridge sends), FreeJ2ME.log, and the SiemensData/ and XceData/ directories that the Siemens and XCE file APIs write to. FreeJ2MEDumps/KDDI/ receives the jar and jad extracted from a .kjx. Saves go to <save_dir>/freej2me/ (rms/<suite>/, the suite name with any of /:*?"<>| replaced by an underscore, and config/<suite>/game.conf), falling back to the system directory when the frontend has no save directory. ref: src/org/recompile/freej2me/Config.java:47-48, src/org/recompile/freej2me/Config.java:188-208, src/org/recompile/mobile/Mobile.java:119-121, src/org/recompile/mobile/Mobile.java:133, src/libretro/freej2me_libretro.c:937-945, src/org/recompile/freej2me/Libretro.java:201-205, src/javax/microedition/rms/RecordStore.java:111-112, 1134
Two files are user supplied and optional. With the freej2me_midifont core option on, Manager.checkCustomMidi loads the first .sf2 or .gm listed in freej2me_system/customMIDI/ as the MIDI soundbank. Off, or with the directory empty, the JVM default soundbank is used. With freej2me_textfont on, PlatformFont loads the first .ttf, .otf or .ttc in freej2me_system/customFont/. Off, the AWT SansSerif, Monospaced and Dialog faces are used. Both directories are created with a placeholder file when missing, and neither file has a fixed name. ref: src/libretro/freej2me_libretro.c:465-470, src/libretro/freej2me_libretro.c:481-486, src/org/recompile/freej2me/Libretro.java:240, src/org/recompile/freej2me/Libretro.java:254, src/org/recompile/mobile/Mobile.java:1048-1056, src/javax/microedition/media/Manager.java:56, src/javax/microedition/media/Manager.java:330-353, src/org/recompile/mobile/PlatformFont.java:63, src/org/recompile/mobile/PlatformFont.java:133-154
3 files: 1 required, 2 optional.
By kind: 1 BIOS and 2 game data.
In this collection: 1 in repo, 0 missing and 2 unsourceable.
Required
Section titled “Required”freej2me_plus-lr.jar required in repo
FreeJ2ME-Plus libretro Java application
- System: Java J2ME
- Java program the native core launches with java -jar from the system directory root. Built by ant from build.xml at the pinned revision. The code reads no size and no hash.
- Collection copy:
bios/Java/ J2ME/ freej2me_plus-lr.jar
Validation and source
- Validation: existence
- Asked for by: libretro glue, upstream emulator and emulator code, libretro port
- Source:
src/(freej2meapp) (libretro glue),libretro/ freej2me_libretro.c:39-46 src/(GET_SYSTEM_DIRECTORY, freej2me_present, SYSTEM_NOT_FOUND_MSG) (libretro glue),libretro/ freej2me_libretro.c:860-876 src/(access F_OK) (libretro glue),libretro/ freej2me_libretro.c:340-347 src/(java -jar argv) (upstream emulator),libretro/ freej2me_libretro.c:893-904 build.xml:86-99(destfile) (emulator code, libretro port)
Game data
Section titled “Game data”<soundfont>.sf2 optional unsourceable game data
MIDI soundbank for J2ME audio
- Path:
freej2me_system/customMIDI/ <soundfont>.sf2 - System: Java J2ME
- First .sf2 or .gm in the directory listing, loaded through MidiSystem.getSoundbank when the freej2me_midifont option is on. A rejected file is logged and the JVM default soundbank stays.
- Not collected yet: user supplied, no canonical file (files not collected yet)
Source
- Asked for by: emulator code, libretro port
- Source:
src/(emulator code, libretro port),javax/ microedition/ media/ Manager.java:56 src/(emulator code, libretro port),javax/ microedition/ media/ Manager.java:330-353 src/(emulator code, libretro port)org/ recompile/ mobile/ Mobile.java:1048-1050
<font>.ttf optional unsourceable game data
TrueType font for J2ME text
- Path:
freej2me_system/customFont/ <font>.ttf - System: Java J2ME
- First .ttf, .otf or .ttc in the directory listing, loaded through Font.createFont when the freej2me_textfont option is on. A rejected file is logged and the AWT faces stay.
- Not collected yet: user supplied, no canonical file (files not collected yet)
Source
- Asked for by: emulator code, libretro port
- Source:
src/(emulator code, libretro port),org/ recompile/ mobile/ PlatformFont.java:63 src/(emulator code, libretro port),org/ recompile/ mobile/ PlatformFont.java:133-154 src/(emulator code, libretro port)org/ recompile/ mobile/ Mobile.java:1054-1056
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start