Run classic Java ME (J2ME) games natively on iPhone & iPad.
Embedded OpenJDK Mobile · Clean-room MIDP · SwiftUI · Free for personal use
Validated on a physical iPhone XS Max (iOS 18.7.1). iPhone + iPad, iOS 17+.
| Feature | Status |
|---|---|
| Embedded OpenJDK Mobile (Zero, statically linked) | ✅ |
| Clean-room MIDP 2.0 / CLDC runtime (own implementation) | ✅ |
| Pure-Java graphics (no AWT on iOS) | ✅ |
| Commercial MIDlets | ✅ |
| LCD rendering | ✅ |
| On-screen controls (D-pad, soft keys, keypad, touch pointer) | ✅ |
| Device profiles (96×65 – 480×800, auto-detected) | ✅ |
| Save / Load (RMS), per-game savedata management | ✅ |
| Native audio (MIDI / WAV via AVAudio bridge) | ✅ |
| Vibration (haptics) | ✅ |
| Settings (theme, keypad, vibration) | ✅ |
| Switch games without restarting the app | ✅ |
| M3G 3D (JSR-184, software renderer) | ✅ |
| Performance (frame pacing, skip unchanged frames) | ✅ |
| Compatibility expansion | 🚧 In Progress |
Known limitation: HotSpot can only create one VM per process, so CoreJ2 keeps a single VM alive and swaps MIDlet sessions inside it.
CoreJ2 focuses on the 50 most famous J2ME games and tracks each one on a real iPhone. Full matrix (touch, keypad, RMS, audio per game): docs/compatibility.md · data
| Game | Result |
|---|---|
| Miami Nights: Singles in the City (EN v1.0.8 / ES-ML v1.0.3) (240×320) | ✅ Playable |
| Gangstar 2: Kings of L.A. (240×320) | ✅ Playable |
| Asphalt 3: Street Rules 3D (240×320) | 🟡 Partial (fix in progress) |
| Diamond Rush (240×400 · touch) | ✅ Playable |
| Bounce Tales (Multi) | ✅ Playable |
| Real Football 2011 (240×400 · touch) | ✅ Playable |
| Prince of Persia: Las Arenas Olvidadas (640×360 · touch) | ✅ Playable |
| Assassin's Creed (640×360 · touch) | ✅ Playable |
| Snake III | ⚪ Not tested yet |
| Bounce | ⚪ Not tested yet |
| Tetris | ⚪ Not tested yet |
| Asphalt 4: Elite Racing | ⚪ Not tested yet |
| Need for Speed: Most Wanted | ⚪ Not tested yet |
| Gangstar Rio: City of Saints | ⚪ Not tested yet |
| Modern Combat 3: Fallen Nation | ⚪ Not tested yet |
| N.O.V.A. | ⚪ Not tested yet |
| Hero of Sparta | ⚪ Not tested yet |
| God of War: Betrayal | ⚪ Not tested yet |
| Splinter Cell: Conviction | ⚪ Not tested yet |
| Assassin's Creed II | ⚪ Not tested yet |
| Spider-Man: Toxic City | ⚪ Not tested yet |
| The Sims 3 | ⚪ Not tested yet |
| New York Nights 2: Friends for Life | ⚪ Not tested yet |
| Gravity Defied | ⚪ Not tested yet |
| Worms 2007 | ⚪ Not tested yet |
| Doom RPG | ⚪ Not tested yet |
| Wolfenstein RPG | ⚪ Not tested yet |
| Age of Empires II Mobile | ⚪ Not tested yet |
| Midnight Pool 3 | ⚪ Not tested yet |
| Pro Evolution Soccer 2011 | ⚪ Not tested yet |
| FIFA 2011 | ⚪ Not tested yet |
| Ultimate Mortal Kombat 3 | ⚪ Not tested yet |
| Street Fighter II Turbo | ⚪ Not tested yet |
| Tekken Mobile | ⚪ Not tested yet |
| Contra 4 | ⚪ Not tested yet |
| Castlevania: Order of Shadows | ⚪ Not tested yet |
| Sonic the Hedgehog | ⚪ Not tested yet |
| Doodle Jump | ⚪ Not tested yet |
| Angry Birds | ⚪ Not tested yet |
| Zuma Deluxe | ⚪ Not tested yet |
| Bejeweled | ⚪ Not tested yet |
| Block Breaker Deluxe | ⚪ Not tested yet |
| Brain Challenge | ⚪ Not tested yet |
| Monopoly | ⚪ Not tested yet |
| Ferrari GT: Evolution | ⚪ Not tested yet |
| Driver: L.A. Undercover | ⚪ Not tested yet |
| Brothers in Arms | ⚪ Not tested yet |
| Call of Duty: Black Ops | ⚪ Not tested yet |
| Iron Man 2 | ⚪ Not tested yet |
| Avatar | ⚪ Not tested yet |
CoreJ2 ships no games. You load your own .jar files.
| Check | Result |
|---|---|
| Launch | ✓ |
| Menus | ✓ |
| Gameplay | ✓ |
| Audio (MIDI/WAV) | ✓ |
| Vibration (haptics) | ✓ |
| Save / Load (RMS) | ✓ |
| On-screen controls | ✓ |
| Stable gameplay | ✓ |
Gameplay and menu — Miami Nights on device
SwiftUI (Library · Emulator · Settings)
↓
Bridge (JNI gateway, key/audio/vibration events)
↓
Embedded OpenJDK Mobile (Zero interpreter, static libjvm)
↓
CoreJ2 clean-room MIDP (LCDUI · RMS · MMAPI · M3G · Nokia UI · GCF)
↓
Commercial MIDlet (.jar loaded by the user)
The static Zero image has no AWT on iOS, so CoreJ2 implements the MIDP
surface in pure Java (framebuffer images, PNG/BMP decoding, bitmap fonts,
software M3G). The shipped classpath is the pure one
(scripts/embedded-jvm/compile-fase3-pure.sh): 280 classes — ObjectWeb ASM
(BSD) plus CoreJ2's own clean-room MIDP written from the public
specifications (MIDP 2.0/JSR-118, CLDC 1.1, MMAPI/JSR-135, M3G/JSR-184).
Vendor/FreeJ2ME remains in the repo as a reference and as the build-time
source of ASM; no FreeJ2ME classes ship in the app.
Requirements: macOS with Xcode, iPhoneOS SDK, autoconf, and a Boot JDK 24 (e.g. Azul Zulu 24).
# 1. Build the embedded JVM (OpenJDK Mobile, Zero) + pure MIDP classpath
scripts/openjdk-mobile/build-everything.sh
# 2. Open the Xcode project and run on a physical device
open CoreJ2.xcodeprojNotes:
- The JVM build runs in a space-free path (
~/corej2-jvm) because OpenJDK's configure rejects paths with spaces; artifacts are copied back into the repo. - OpenJDK Mobile patches live in
patches/openjdk-mobile/and are applied byscripts/openjdk-mobile/apply-patches.shduring the build. - Simulator builds link without the JVM (device-only runtime).
- Embedded JVM (OpenJDK Mobile Zero,
JNI_CreateJavaVMon device) - Clean-room MIDP 2.0 / CLDC / MMAPI / M3G (pure classpath, no FreeJ2ME in the app)
- Pure-Java graphics (no AWT)
- Device profiles + auto-detection (Nokia, Sony Ericsson, Motorola, …)
- On-screen controls, settings, vibration
- Native audio (MIDI/WAV)
- RMS savedata management
- In-process game switching
- Frame pacing / performance pass
- Compatibility expansion
- Performance polish
- Controller support
- Per-game settings
- Save states
Full plan: ROADMAP.md
Official assets: assets/branding/ · Guidelines
Palette: #2563EB · #60A5FA · #0B1220 · #FFFFFF · #94A3B8
✅ v1.0 — commercial J2ME titles run on physical iPhone with embedded OpenJDK Mobile and a clean-room MIDP. Compatibility work now focuses on the Top 50 most famous J2ME games (see above).
See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.
CoreJ2 is 100% free for personal, non-commercial use. Commercial use is not allowed without prior written permission from the author. If you publish CoreJ2 anywhere or use any part of it in another project, credit is mandatory: "CoreJ2 by Leonel Figuereo (AbadXDev)". See LICENSE for the full terms.
Third-party components keep their own licenses:
- OpenJDK Mobile: GPLv2 with the Classpath Exception.
- ObjectWeb ASM: BSD license.
Vendor/FreeJ2ME(reference only, not shipped in the app): GPL-3.0.- Brand assets: original CoreJ2 identity (see branding guidelines).
Copyright © 2026 Leonel Figuereo (AbadXDev)
