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 28.2k 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.
    • BloodDragoonB
      BloodDragoon @Hex
      last edited by

      @hex FIXED IT MYSELF!
      Build from source on Windows:

      1. Download Git from here, while you get prompted to install, it'll ask from where you want to PATH Git, choose Windows Command Line, next, use the OpenSSL library for git, for line ending conversions, choose Windows Style Checkout, commit unix-style line endings, then, the terminal, choose MinTTY, extra options, Enable system caching and Git credencial manager.

      2. Download Apache Ant's latest version here, extract to C:\Program Files, then, open the file, double click the directory bar and copy the directory name which is: C:\Program Files\apache-ant-1.10.1, then, go to your Control Panel then go to System > Advanced Configuration, you'll see advanced options, go to the checkbox that says "System Variables" at the bottom, you'll need to create a new user variable, so, click on New, you'll see a "Name of the variable" and "Value of the variable", Name the variable ANT_HOME, and set it's value to the Ant directory, click OK, then, download the Java Development Kit here, then after that, go to the JDK installation directory which is: C:\Program Files\Java\jdk1.8.0_144, copy the directory by double clicking the directory bar again, do the same process as the Ant one, except now name it JAVA_HOME, after all of this, it's time to compile it.

      3. Now open up CMD as administrator, and follow Hex's instructions above:

      git clone https://github.com/hex007/freej2me

      cd freej2me

      ant

      Do the commands one by one, then press ENTER. It should be built successfully and located on: C:\Users\YourName\freej2me.

      Good luck! :)

      recompileR 1 Reply Last reply Reply Quote 0
      • recompileR
        recompile @BloodDragoon
        last edited by

        @blooddragoon Looks good. I also added the following to my path:

        c:\ant\bin
        C:\Program Files\Java\jdk1.8.0_131\bin

        For the sake of others:
        You need two environment variables, JAVA_HOME and ANT_HOME Mine are are shown below. You'll need to update the paths to match your Java and Ant installations.

        Name: JAVA_HOME Value: C:\Program Files\Java\jdk1.8.0_131
        Name: ANT_HOME Value: c:\ant\bin

        1 Reply Last reply Reply Quote 0
        • BloodDragoonB
          BloodDragoon
          last edited by

          Hmm... The system path? 0_1506380878521_Java home.PNG

          Like that? I don't have a C:/ant/bin...

          recompileR 1 Reply Last reply Reply Quote 0
          • recompileR
            recompile @BloodDragoon
            last edited by

            @blooddragoon Your paths will be different. i.e. C:\Program Files\apache-ant-1.10.1\bin and C:\Program Files\Java\jdk1.8.0_144\bin

            Though if you're building, it must not be too important.

            BloodDragoonB 1 Reply Last reply Reply Quote 0
            • BloodDragoonB
              BloodDragoon @recompile
              last edited by

              @recompile Ahh, got you, should i try this? Same null file...

              recompileR 1 Reply Last reply Reply Quote 0
              • recompileR
                recompile @BloodDragoon
                last edited by

                @blooddragoon You could try, though it shouldn't make any difference. Your problem is very strange. Have you managed to get anything to run?

                BloodDragoonB 2 Replies Last reply Reply Quote 0
                • BloodDragoonB
                  BloodDragoon @recompile
                  last edited by

                  @recompile No... Same thing as described, thinking of trying a Windows 7 Virtual Machine just to play with in Virtualbox.

                  1 Reply Last reply Reply Quote 0
                  • BloodDragoonB
                    BloodDragoon @recompile
                    last edited by

                    @recompile Watch, i edit even the nokia string in Notepad++!

                    recompileR 1 Reply Last reply Reply Quote 0
                    • recompileR
                      recompile @BloodDragoon
                      last edited by

                      @blooddragoon Try running it from the command line.

                      In Windows 8, iirc, type cmd from the start screen and open the command prompt. Navigate to the build directory (you could type the whole path, e.g. cd c:\users\blooddragon\whatever\build) and run java -jar freej2me.jar

                      Paste what it spits out. With luck, that'll be enough to solve this mystery.

                      BloodDragoonB 3 Replies Last reply Reply Quote 0
                      • BloodDragoonB
                        BloodDragoon @recompile
                        last edited by

                        @recompile Microsoft Windows [Versión 6.2.9200]
                        C:\Windows\system32>cd C:\Users\Dragonkilah!\freej2me\build

                        C:\Users\Dragonkilah!\freej2me\build>java -jar freej2me.jar
                        Can't Read Jar Manifest!
                        java.io.FileNotFoundException: C:\Users\Dragonkilah (El sistema no puede encontr
                        ar el archivo especificado)
                        at java.util.zip.ZipFile.open(Native Method)
                        at java.util.zip.ZipFile.<init>(Unknown Source)
                        at java.util.zip.ZipFile.<init>(Unknown Source)
                        at java.util.jar.JarFile.<init>(Unknown Source)
                        at java.util.jar.JarFile.<init>(Unknown Source)
                        at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
                        at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
                        at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
                        at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
                        at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Sour
                        ce)
                        at java.net.URL.openStream(Unknown Source)
                        at org.recompile.mobile.MIDletLoader.loadManifest(MIDletLoader.java:172)

                            at org.recompile.mobile.MIDletLoader.<init>(MIDletLoader.java:84)
                            at org.recompile.mobile.MobilePlatform.loadJar(MobilePlatform.java:155)
                            at org.recompile.freej2me.FreeJ2ME.<init>(FreeJ2ME.java:180)
                            at org.recompile.freej2me.FreeJ2ME.main(FreeJ2ME.java:36)
                        

                        Problem Constructing null class: null
                        Reason: null
                        java.lang.NullPointerException
                        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
                        at java.lang.ClassLoader.loadClass(Unknown Source)
                        at org.recompile.mobile.MIDletLoader.start(MIDletLoader.java:106)
                        at org.recompile.mobile.MobilePlatform.runJar(MobilePlatform.java:171)
                        at org.recompile.freej2me.FreeJ2ME.<init>(FreeJ2ME.java:185)
                        at org.recompile.freej2me.FreeJ2ME.main(FreeJ2ME.java:36)
                        Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
                        at org.recompile.mobile.MobilePlatform.pointerReleased(MobilePlatform.ja
                        va:119)
                        at org.recompile.freej2me.FreeJ2ME$5.mouseReleased(FreeJ2ME.java:144)
                        at java.awt.Component.processMouseEvent(Unknown Source)
                        at java.awt.Component.processEvent(Unknown Source)
                        at java.awt.Component.dispatchEventImpl(Unknown Source)
                        at java.awt.Component.dispatchEvent(Unknown Source)
                        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
                        at java.awt.EventQueue.access$500(Unknown Source)
                        at java.awt.EventQueue$3.run(Unknown Source)
                        at java.awt.EventQueue$3.run(Unknown Source)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
                        rivilege(Unknown Source)
                        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
                        rivilege(Unknown Source)
                        at java.awt.EventQueue$4.run(Unknown Source)
                        at java.awt.EventQueue$4.run(Unknown Source)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
                        rivilege(Unknown Source)
                        at java.awt.EventQueue.dispatchEvent(Unknown Source)
                        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
                        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
                        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
                        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                        at java.awt.EventDispatchThread.run(Unknown Source)

                        C:\Users\Dragonkilah!\freej2me\build>

                        1 Reply Last reply Reply Quote 0
                        • BloodDragoonB
                          BloodDragoon @recompile
                          last edited by

                          @recompile It opened up the .jar, selected Medal of Honor 2D, that's what it outputs.

                          1 Reply Last reply Reply Quote 0
                          • HexH
                            Hex
                            last edited by

                            @BloodDragoon Do you have ShadoWalker Game? try that. That is the one we both used initially for development and I finished the entire game while testing stability. So that game definitely works all the way. Check it out and let me know

                            Sent from 20,000 leagues under the sea.

                            Powersaver Emulation station : https://github.com/hex007/EmulationStation
                            ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                            BloodDragoonB 2 Replies Last reply Reply Quote 0
                            • BloodDragoonB
                              BloodDragoon @recompile
                              last edited by

                              @recompile Tried the VM, now it just goes to a black screen, Java 8, Update 66.

                              1 Reply Last reply Reply Quote 0
                              • BloodDragoonB
                                BloodDragoon @Hex
                                last edited by

                                @hex No, i'll get it now, i'll reply tommorrow, bed time...

                                recompileR 1 Reply Last reply Reply Quote 0
                                • recompileR
                                  recompile @BloodDragoon
                                  last edited by

                                  @blooddragoon There it is: C:\Users\Dragonkilah!\freej2me\build

                                  There's a very old bug related to exclamation points in paths:
                                  http://bugs.java.com/view_bug.do?bug_id=4523159

                                  Try moving freej2me.jar and the game to a simply named directory off root. Something like c:\j2me and running it from there.

                                  If moving the files works, then we'll know that that's the problem.

                                  1 Reply Last reply Reply Quote 0
                                  • HexH
                                    Hex
                                    last edited by

                                    @recompile So simple. Way to go

                                    Sent from 20,000 leagues under the sea.

                                    Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                    ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                    recompileR 1 Reply Last reply Reply Quote 0
                                    • recompileR
                                      recompile @Hex
                                      last edited by

                                      @hex Hopefully. I guess we'll find out tomorrow.

                                      1 Reply Last reply Reply Quote 0
                                      • HexH
                                        Hex
                                        last edited by Hex

                                        @recompile You can try to test it too. I tried on my Linux system and it crashes with file not found, same as above. This is certainly the case. The error message is exactly the same.

                                        Sent from 20,000 leagues under the sea.

                                        Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                        ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                        recompileR 1 Reply Last reply Reply Quote 0
                                        • recompileR
                                          recompile @Hex
                                          last edited by

                                          @hex Excellent. I suspect this can be fixed the same way as suggested in the bug report (replacing ! with %21) as the problem reported with that fix won't apply.

                                          1 Reply Last reply Reply Quote 0
                                          • HexH
                                            Hex
                                            last edited by

                                            @recompile I dismissed that cause as @BloodDragoon had it working with the Sourceforge build. Strange.

                                            Sent from 20,000 leagues under the sea.

                                            Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                            ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                            recompileR 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.