Modern and faster version of MicroEmu and J2ME Loader with multi instances support, available in Windows, Linux, MacOS and Android built in Zed GPUI.
Stick Fight, Shooter, BombMan, Traffic Dash, Tower Guard and Star
Defender, free games recorded in FastEmu with fastemu run --record. See
Credits.
FastEmu runs Java ME games, the .jar and .jad files made for phones
of the 2000s, on Windows, Linux, macOS and Android. It implements CLDC 1.1
and MIDP 2.0 with a virtual machine of its own, so it needs no Java
installed. Each game runs in its own virtual machine with its own memory,
threads, saves and sound, and one window shows as many games as you start.
A game that crashes or hangs does not stop the ones next to it.
Install · Usage · Supported APIs · Build from source · Contributing · Changelog · Bahasa Indonesia
Download the file for your system from the
Releases page. Each
release has a SHA256SUMS file to check the downloads against.
| System | What to do |
|---|---|
| Windows | Unpack fastemu-<version>-windows-x64.zip anywhere and run fastemu.exe. If SmartScreen warns, choose More info, then Run anyway: the program is not signed. |
| Linux | Unpack fastemu-<version>-linux-x64.tar.gz (or -linux-arm64) anywhere and run fastemu, or install fastemu-<version>-linux-x64.deb on Debian and Ubuntu. It needs a Vulkan driver and a Wayland or X11 session. |
| macOS | Unpack fastemu-<version>-macos-universal.zip and move the app to Applications. The app is not notarized: open it once from System Settings, Privacy & Security, Open Anyway. |
| Android | Open fastemu-<version>-android.apk from your files. Android asks you to allow installs from that source the first time. |
FastEmu does not include games. Use files you own or that their authors made free to share.
Adding games. Drag .jar or .jad files onto the window, choose +
at the top of the library, or pass the files on the command line, which
adds each one and starts it:
fastemu snake.jar tetris.jadOn Android, choose + and pick the files from storage, or open them from a file manager with FastEmu. FastEmu reads the name, vendor, version and icon from the manifest or the descriptor and lists the game in its library. Click a game to start it.
Running several games. Start another game from the library while one runs and it opens next to the first. You can start the same game twice; each copy keeps its own saves. Every game plays its sound, and each can be muted. The window shows the running games in a grid of equal tiles, or the highlighted one large with the others in a strip beside it.
Keys. The keyboard plays the highlighted game:
| Phone key | Keyboard |
|---|---|
| 0 to 9 | 0 to 9 on the number row and the number pad |
* and # |
* and # (Shift+8, Shift+3), or the number pad's * and / |
| Up, down, left, right | Arrow keys |
| Fire | Enter or Space |
| Left and right soft keys | F1 and F2 |
| Clear | Backspace |
Every binding can be changed in the settings. Each game also has a phone keypad under its screen, held by the mouse or a finger. Games on a touch screen get clicks, taps and drags on their screen: pick a touch phone profile, or turn on Touch screen in the game's settings. While a game shows a text box, typing goes into it as text; on Android a dialog with the system keyboard opens. The key codes a game sees come from its phone profile, because phone makers used different codes: Nokia, Siemens and Motorola layouts are built in.
Without a window. fastemu run runs a game for tests and scripts,
presses keys and touches the screen from a script, and saves the last
picture or every picture the game draws:
fastemu run snake.jar --frames 300 --keys "wait:1500 5" --screenshot snake.pngThe documentation has the full
list of keys and shortcuts, the settings, the phone profiles, where saves
live and every option of fastemu run.
FastEmu targets the platform that games of that time were written for:
- CLDC 1.1 and its
java.lang,java.utilandjava.iosubset - MIDP 2.0: the
Canvas, the high-level screens (Formand its items,List,TextBox,AlertandTicker), record stores and the MIDlet life cycle - The MIDP 2.0 game API
- The Generic Connection Framework: HTTP, HTTPS, sockets and datagrams, for the games you allow network access, which is off by default. Text messages are never sent: a game that sends one is told it failed.
- Mobile Media API (MMAPI, JSR 135): tones, WAV, MIDI, MP3 and AMR
- Nokia UI API:
FullCanvas,DirectGraphics,DirectUtils,DeviceControlandSound, on the Nokia, Sony Ericsson and generic phone profiles - Siemens' game and colour game packages on the Siemens profile, and Motorola's backlight class on the Motorola profile
3D games (JSR-184), file connections (JSR-75), Bluetooth and the rarer vendor APIs do not work yet. The compatibility page has the details and the free games FastEmu was run with. A game that does not work belongs in a game report.
You need rustup. The repository pins its toolchain in
rust-toolchain.toml, so the right Rust installs on the first build.
git clone https://github.com/fzn0x/FastEmu.git
cd FastEmu
cargo test # the emulator crates
cargo run -p fastemu # the desktop appOn Linux the desktop app also needs a C compiler, pkg-config, the ALSA
headers for its sound and the development packages of GPUI: fontconfig,
xkbcommon, Wayland, X11 and Vulkan. On macOS the desktop app
needs Xcode, whose Metal toolchain compiles GPUI's shaders. Many tests
compile small Java programs, and the virtual machine's tests compare its
results with a real JVM's, so install a JDK 9 or newer; CI uses 17.
CONTRIBUTING.md has the exact packages, and
docs/building-android.md the Android app's
steps.
A Rust workspace of small crates. fastemu-core holds the types that the
runtime and the apps share: frames, input events, device profiles and the
launcher that starts a game. fastemu-jvm is the virtual machine and its
class libraries, fastemu-gfx the 2D graphics, fastemu-audio sound and
MIDI, and fastemu-midp the MIDP, game, media, network and vendor APIs
that games call. fastemu-ui is the GPUI interface that the desktop
program fastemu and the Android app fastemu-android both use, and
gpui_android is GPUI's Android backend.
MicroEmulator and J2ME Loader kept these games playable for more than ten years. FastEmu follows their behavior where a game depends on it, and owes them the knowledge of which quirks matter.
The interface is built with GPUI, the UI framework of the Zed editor. GPUI on Android runs on the Zed Android port by Dylan Murzello.
The picture at the top shows free games, all under the MIT License: Stick Fight by Dash Animation V2, Shooter by Muhammad Rehan Saeed, BombMan by Iaroslav Omelianenko, and Traffic Dash, Tower Guard and Star Defender from J2ME 100 Games by Agneay B Nair and the J2ME Game Archive contributors.
The Rust crates, fonts and game frames FastEmu uses, with their licenses, are listed in THIRD_PARTY_NOTICES.md. The people who helped are in CONTRIBUTORS.md.
FastEmu is free software under the GNU General Public License v3.0 or later.
