FreeJ2ME support thread
-
@BloodDragoon Use this thread for support. That thread is for development.
-
@Hex Thanks!
-
@hex FIXED IT MYSELF!
Build from source on Windows:-
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.
-
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.
-
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! :)
-
-
@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
andANT_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
-
Hmm... The system path?
Like that? I don't have a C:/ant/bin...
-
@blooddragoon Your paths will be different. i.e.
C:\Program Files\apache-ant-1.10.1\bin
andC:\Program Files\Java\jdk1.8.0_144\bin
Though if you're building, it must not be too important.
-
@recompile Ahh, got you, should i try this? Same null file...
-
@blooddragoon You could try, though it shouldn't make any difference. Your problem is very strange. Have you managed to get anything to run?
-
@recompile No... Same thing as described, thinking of trying a Windows 7 Virtual Machine just to play with in Virtualbox.
-
-
@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.
-
@recompile Microsoft Windows [VersiĆ³n 6.2.9200]
C:\Windows\system32>cd C:\Users\Dragonkilah!\freej2me\buildC:\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>
-
@recompile It opened up the .jar, selected Medal of Honor 2D, that's what it outputs.
-
@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
-
@recompile Tried the VM, now it just goes to a black screen, Java 8, Update 66.
-
@hex No, i'll get it now, i'll reply tommorrow, bed time...
-
@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=4523159Try 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.
-
@recompile So simple. Way to go
-
@hex Hopefully. I guess we'll find out tomorrow.
-
@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.
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.