# freej2me
![Java CI](https://github.com/hex007/freej2me/workflows/Java%20CI/badge.svg)
A free J2ME emulator with libretro, awt and sdl2 frontends.
Authors :
- David Richardson [Recompile@retropie]
- Saket Dandawate [Hex@retropie]
---
## Controls
* `Q` and `W` for left and right softkeys.
* Arrow keys for nav, unless phone is set to "Standard", when arrow keys become 2, 4, 6, and 8.
* Numbers work as expected, the number pad is inverted (123 swap with 789, like a phone)
* `E` and `R` are alternatives to `*` and `#`.
* Enter functions as the Fire key or `5` on "Standard" mode
* ESC brings up the settings menu
* In the AWT frontend (freej2me.jar) `Ctrl+C` takes a screenshot and `+`/`-` can be used to control the window scaling factor
Click [here](KEYMAP.md) for information about more keybindings
## Links
Screenshots:
https://imgur.com/a/2vAeC
Discussion/Support thread:
https://retropie.org.uk/forum/topic/13084/freej2me-support-thread
Development thread:
https://retropie.org.uk/forum/topic/11441/would-you-like-to-play-nokia-j2me-games-on-retropie/
----
**FreeJ2ME Jar Compilation:**
>From the root directory, running the following commands:
>```
> > cd freej2me/
> > ant
>```
> Will create three different jar files inside `build/`:
>
> `freej2me.jar` -> Standalone AWT jar executable
>
> `freej2me-lr.jar` -> Libretro executable (has to be placed on the frontend's `system/` folder, since it acts as a BIOS for the libretro core and runs J2ME jars)
>
>`freej2me-sdl.jar` -> Jar executable meant to be used in conjunction with SDL2
>
>Both the Libretro and SDL2 jar files need additional binaries to be compiled before use. Look at the additional steps below if you're going to use one of them.
**Building the SDL2 binary:**
>
>To build the SDL2 binary, run the following commands from the root directory:
> ```
> # SDL2 binary compilation
> > cd src/sdl2
> > make
> > make install
> ```
>
> SDL2 allows FreeJ2ME to run on a Raspberry Pi.
**Building the Libretro core (Not working on Windows as of yet):**
>
>To build the libretro core, run the following commands from the root directory:
>```
># libretro core compilation
> > cd src/libretro
> > make
>```
>This will build `freej2me_libretro.so` on `src/libretro/`, which is the core libretro will use to interface with `freej2me-lr.jar`.
>
>Move it to your libretro frontend's `cores/` folder, with freej2me-lr.jar on `system/` and the frontend should be able to load j2me files afterwards.
>
>NOTE: The core DOES NOT WORK on containerized/sandboxed environments unless it can call a java runtime that also resides in the same sandbox or container, keep that in mind if you're running a libretro frontend through something like flatpak or snap for example.
----
**Usage (applies to AWT and SDL):**
Launching the AWT frontend (freej2me.jar) will bring up a filepicker to select the MIDlet to run.
Alternatively it can be launched from the command line: `java -jar freej2me.jar 'file:///path/to/midlet.jar' [width] [height] [scale]`
Where _width_, _height_ (dimensions of the simulated screen) and _scale_ (initial scale factor of the window) are optional arguments.
The SDL2 frontend (freej2me-sdl.jar) accepts the same command-line arguments format, aside from the _scale_ option which is unavailable.
When running under Microsoft Windows please do note paths require an additional `/` prefixed. For example, `C:\path\to\midlet.jar` should be passed as `file:///C:\path\to\midlet.jar`
FreeJ2ME keeps savedata and config at the working directory it is run from. Currently any resolution specified at the config file takes precedence over the values passed via command-line.
---
**How to contribute as a developer:**
1) Open an Issue
2) Try solving that issue
3) Post on the Issue if you have a possible solution
4) Submit a PR implementing the solution
**If you are not a developer:**
1) Post on discussion thread only
**Roadmap:**
- Get as many games as possible to work well.
- Document games that work well in the wiki
- Reduce as many bugs as possible
没有合适的资源?快使用搜索试试~ 我知道了~
带有libretro、awt和sdl2前端的免费J2ME模拟器。.zip
共372个文件
java:316个
h:18个
c:9个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 167 浏览量
2023-03-23
21:30:32
上传
评论
收藏 718KB ZIP 举报
温馨提示
带有libretro、awt和sdl2前端的免费J2ME模拟器。
资源推荐
资源详情
资源评论
收起资源包目录
带有libretro、awt和sdl2前端的免费J2ME模拟器。.zip (372个子文件)
file_path.c 22KB
freej2me_libretro.c 18KB
compat_ifaddrs.c 17KB
compat_fnmatch.c 6KB
compat_getopt.c 5KB
compat_posix_string.c 3KB
compat_snprintf.c 2KB
compat_strcasestr.c 2KB
compat_strl.c 2KB
retroarch.cfg 333B
retroarch.cfg 333B
emulators.cfg 206B
emulators.cfg 206B
Makefile.common 286B
anbu.cpp 11KB
asm-xml.dtd 12KB
.gitignore 52B
zlib.h 84KB
libretro.h 74KB
zconf.h 15KB
file_path.h 14KB
stdint.h 8KB
zutil.h 6KB
msvc.h 4KB
retro_common_api.h 4KB
retro_miscellaneous.h 3KB
getopt.h 3KB
intrinsics.h 2KB
apple_compat.h 2KB
posix_string.h 2KB
strl.h 2KB
strcasestr.h 2KB
ifaddrs.h 2KB
boolean.h 2KB
fnmatch.h 2KB
package.html 6KB
package.html 4KB
package.html 3KB
package.html 3KB
package.html 3KB
package.html 2KB
package.html 2KB
package.html 2KB
zconf.h.in 15KB
MethodWriter.java 97KB
ClassReader.java 84KB
CheckMethodAdapter.java 48KB
Frame.java 48KB
GeneratorAdapter.java 47KB
ASMContentHandler.java 47KB
ClassWriter.java 46KB
Processor.java 34KB
InstructionAdapter.java 31KB
JSRInlinerAdapter.java 29KB
AnalyzerAdapter.java 28KB
Type.java 25KB
Frame.java 25KB
Label.java 22KB
Analyzer.java 21KB
CheckClassAdapter.java 20KB
InsnList.java 20KB
M3D.java 20KB
PlatformGraphics.java 20KB
SerialVersionUIDAdder.java 18KB
MethodVisitor.java 18KB
AdviceAdapter.java 18KB
ASMifierClassVisitor.java 18KB
TraceMethodVisitor.java 17KB
TraceClassVisitor.java 16KB
MethodNode.java 16KB
BasicVerifier.java 15KB
ASMifierMethodVisitor.java 14KB
Libretro.java 14KB
RecordStore.java 14KB
SAXCodeAdapter.java 14KB
FreeJ2ME.java 14KB
MIDletLoader.java 12KB
SAXClassAdapter.java 12KB
Config.java 11KB
BasicInterpreter.java 11KB
SimpleVerifier.java 11KB
AnnotationWriter.java 11KB
AffineTrans.java 11KB
Opcodes.java 11KB
LocalVariablesSorter.java 11KB
Attribute.java 10KB
ByteVector.java 10KB
PlatformPlayer.java 9KB
CheckSignatureAdapter.java 9KB
Method.java 9KB
FieldWriter.java 9KB
Interpreter.java 9KB
SignatureReader.java 9KB
TraceSignatureVisitor.java 9KB
ClassNode.java 9KB
TraceAnnotationVisitor.java 9KB
Anbu.java 9KB
ClassVisitor.java 8KB
Item.java 8KB
ASMifierAbstractVisitor.java 8KB
共 372 条
- 1
- 2
- 3
- 4
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功