RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    FreeJ2ME support thread

    Scheduled Pinned Locked Moved Help and Support
    j2mesupport
    79 Posts 14 Posters 30.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SuperFromNDS
      SuperFromND
      last edited by SuperFromND

      Compiling on a Raspberry Pi 3, getting this:
      https://hastebin.com/uqosiyopeb

      My guess is that I'm trying to compile using a JVM/JRE that's too old and thus flips out at more modern code? (it's OpenJDK 7, so that shouldn't be the case...)

      EDIT: Never mind, just realized there's install instructions for the Pi in the package folder.

      EDIT 2: Okay, now I'm getting:

      Exception in thread "main" java.lang.UnsupportedClassVersionError: org/recompile/freej2me/Libretro : Unsupported major.minor version 52.0
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
      	at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
      

      on the libretro core, in all games.

      Using oracle-java8-jdk.

      EDIT 3: Okay, installing the openjdk-8-jre package fixed this. The core works now!

      In case you can't compile it yourself, the libretro core can be found in the packages folder in this pre-compiled version on Sourceforge, courtesy of @recompile. From there, you should be able to follow retropie.txt, also present in the packages folder.

      ▲▼▲▼▲▼▲▼▲▼
      IKEMEN Go
      SRB2Kart
      ▼▲▼▲▼▲▼▲▼▲

      1 Reply Last reply Reply Quote 2
      • G
        grouchog @Hex
        last edited by

        @hex Hi, I know this topic is super old, but I was having some trouble with FreeJ2ME and thought I'd start here instead of github. I'm trying to get Resident Evil Degeneration running, and it IS running, but I'm not able to get past this screen. The program isn't accepting any keystrokes, though if I hit escape I am able to get to the game options menu. As far as I can tell all the info in my config file is correct. At a bit of a loss here! ![alt text](Screenshot 2021-08-18 202246.png Screenshot 2021-08-18 202207.png image url)

        1 Reply Last reply Reply Quote 0
        • 9
          9cento
          last edited by

          Where can I find "freej2me_libretro.dll"? (in short, the Retroarch core for Windows). I know it exists somewhere but all I found searching the web left and right were some mentions on random Github codes. Help plz

          dankcushionsD 1 Reply Last reply Reply Quote 0
          • dankcushionsD
            dankcushions Global Moderator @9cento
            last edited by

            @9cento it's not in the buildbot so it's likely it's not automatically built: https://buildbot.libretro.com/nightly/windows/x86/latest/

            possibly because it doesn't build on windows at all: https://github.com/hex007/freej2me/issues/92

            1 Reply Last reply Reply Quote 0
            • G
              gameronthemoon
              last edited by

              How can I rebind the key? I'd like to move the "Action"/"Center" button to space/further away from the arrow keys and the numpad.
              Call me lazy for not read through the source code but would you kindly point me to the files and methods that handle keybinding?

              1 Reply Last reply Reply Quote 0
              • R
                Retrodade
                last edited by Retrodade

                can someone help? i am on retropie 4b and it always worked. i checked to see if Free J2ME had an update, now my games boot back from the external drive, but if i pull drive and put directly to the SD card its fine, somehow the update took the ability away from loading a game from my external drive.. what can be done to fix this? thanks

                runcommand.log error shows this:

                Parameters:
                Executing: SDL_VIDEO_KMSDRM_CRTCID=87 SDL_VIDEO_KMSDRM_MODEID=38 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-freej2me/freej2me_libretro.so --config /opt/retropie/configs/j2me/retroarch.cfg "/home/pi/RetroPie/roms/j2me/Bowling.jar" --appendconfig /dev/shm/retroarch.cfg
                Exception in thread "main" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
                at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
                at java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:333)
                at org.recompile.freej2me.Libretro.<init>(Libretro.java:103)
                at org.recompile.freej2me.Libretro.main(Libretro.java:73)

                R 1 Reply Last reply Reply Quote 0
                • R
                  Retrodade @Retrodade
                  last edited by

                  @Retrodade said in FreeJ2ME support thread:

                  can someone help? i am on retropie 4b and it always worked. i checked to see if Free J2ME had an update, now my games boot back from the external drive, but if i pull drive and put directly to the SD card its fine, somehow the update took the ability away from loading a game from my external drive.. what can be done to fix this? thanks

                  runcommand.log error shows this:

                  Parameters:
                  Executing: SDL_VIDEO_KMSDRM_CRTCID=87 SDL_VIDEO_KMSDRM_MODEID=38 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-freej2me/freej2me_libretro.so --config /opt/retropie/configs/j2me/retroarch.cfg "/home/pi/RetroPie/roms/j2me/Bowling.jar" --appendconfig /dev/shm/retroarch.cfg
                  Exception in thread "main" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
                  at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
                  at java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:333)
                  at org.recompile.freej2me.Libretro.<init>(Libretro.java:103)
                  at org.recompile.freej2me.Libretro.main(Libretro.java:73)

                  anyone? know why on extremal drive it boots back when it worked before trying to update emulator?
                  error is above

                  1 Reply Last reply Reply Quote 0
                  • N
                    neseh
                    last edited by

                    I have compiled the .so and the .jar files for libretro, even made a playlist but the games just don't open. Is it possible to run on Android?

                    How do i install a MIDI driver on android btw?

                    WODAKW 1 Reply Last reply Reply Quote 0
                    • WODAKW
                      WODAK @neseh
                      last edited by WODAK

                      @neseh said in FreeJ2ME support thread:

                      I have compiled the .so and the .jar files for libretro, even made a playlist but the games just don't open. Is it possible to run on Android?

                      How do i install a MIDI driver on android btw?

                      Greetings!

                      Yes you can play J2ME games on Lineage from Konstakang on Raspberry Pi with program called J2ME Loader. It works realy well with controlers and also the button mappings works great.

                      The great thing is that you can costomise profiles for each game.

                      1 Reply Last reply Reply Quote 0
                      • G
                        GrixSilva
                        last edited by

                        Hi there!

                        I'm having trouble installing the freeJ2ME core in my raspberry pi 3 with retropie.

                        I followed this guide here:
                        https://github.com/hex007/freej2me/blob/master/src/libretro/retropie.txt

                        I tried to install the Oracle's JDK by running this command:

                        sudo apt-get install oracle-java8-jdk

                        but it said there was no package,I was only able to install the OpenJDK.

                        Then I followed the next steps, no errors this time.

                        Now I can select the J2ME platform on emulationstation and enter the game's list, but when I select the game, the screen goes black and sends me back to the game's list.

                        Any help?

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.