hex007 / freej2me

A free J2ME emulator with libretro, awt and sdl2 frontends.
Other
500 stars 78 forks source link

AWT error on android #21

Closed meepingsnesroms closed 4 years ago

meepingsnesroms commented 7 years ago

I have compiled openjdk-9 for android armv7 and android x86 and there is no awt port since that requires native librarys.

When I try to run freej2me libretro I get an exception on awt functions.

I dont know how hard this would be but android wont even take memory only awt functions even if they dont try to display anything as is the case with freej2me-lr.jar

For this to work on android with the openjdk it would require porting the memory only awt functions or not using awt since there is no android version available.

The best route would be to port an actual jvm to RetroArch but this may be extremely hard.

recompileorg commented 7 years ago

If you want to eliminate AWT, you'll just need to rewrite PlatformGraphics and PlatformImage. PlatformFont and MobilePlatform should be trivial to update. You'll also need to write your own frontend, but that goes without saying.

Essentially, it's just 5 files. The bulk of the work will be replacing PlatformGraphics.