How to make this java game work?


trix

Very Active Member
Joined
Jan 11, 2010
Messages
433
Thank you for the suggestion. I downloaded version 8u202 of the Arm 32bit JDK on Linux (for Armv8/v7/v6 Soft Float ABI) package from the link you gave me, but it does not appear to include the Java Web Start binary anywhere in the tarball. All the other normal java binaries are there, but javaws is not.

Java Web Start versions higher than the one from OpenJDK v6 seem to be particularly difficult to obtain.
 

ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
8,642
Age
47
Location
France, near Lyon
As I was playing with Java (trying to update minecraft pnd...), I tried to build IcedTea-web, to get a javaws...
So I built 1.7 version, wich build a javaws.sh.
That game download itself, but unfortunatly, doesn't start after that.
wurm01.png
I get a java execption
Here, the whole log
Code:
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
basename: extra operand ‘-Stable-.desktop’
Try 'basename --help' for more information.
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Application title was not found in manifest. Check with application vendor
Starting application [com.wurmonline.client.launcherfx.WurmMain] ...
java.lang.NoClassDefFoundError: javafx/application/Application
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.access$1701(JNLPClassLoader.java:105)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$5.run(JNLPClassLoader.java:1744)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$5.run(JNLPClassLoader.java:1741)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1740)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClassExt(JNLPClassLoader.java:1777)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1577)
        at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:556)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:945)
Caused by: java.lang.ClassNotFoundException: javafx.application.Application
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1640)
        ... 18 more

Exception in thread "Wurm Online [Stable]" java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/application/Application
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:968)
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.access$1701(JNLPClassLoader.java:105)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$5.run(JNLPClassLoader.java:1744)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$5.run(JNLPClassLoader.java:1741)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1740)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClassExt(JNLPClassLoader.java:1777)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1577)
        at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:556)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:945)
Caused by: java.lang.ClassNotFoundException: javafx.application.Application
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1640)
        ... 18 more

I guess I should try the 1.8 version of IcedTea-Web. This one build a binary javaws, but it use rust, and a version that seems newer than the one I have on the Pandora. So I need to build a new one, and that's heavy stuff... So I'll try, but that will take some time.
 

trix

Very Active Member
Joined
Jan 11, 2010
Messages
433
Well, drat. I appreciate the effort!

Interestingly, Wurm Online was co-created by Notch, the Minecraft creator, shortly before he left Wurm to make Minecraft. The two games are remarkably similar in many respects, although Wurm is more of a complex, slower paced sandbox.

The fact that we have Minecraft on the Pandora already is what gives me the most hope that Wurm Online is possible.
 

levi

Still fresh, damnit!
Joined
Oct 6, 2008
Messages
12,297
Location
Somewhere off the coast of the EU
Looks like it's trying to find a classfile for javafx.application.Application and failing. Apparently JavaFX should be part of version 8 jres. You could try copying the classpath from the java 8 version to your java 7 install, but you might be on a hiding doing that. Previous versions of javafx which you had to install were never built for arm processors.

It might be buildable from java sources of newer versions against a java 7/1.7 jdk, but I've not tried any of that myself, so this is entirely my own guesswork.
 

ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
8,642
Age
47
Location
France, near Lyon
Looks like it's trying to find a classfile for javafx.application.Application and failing. Apparently JavaFX should be part of version 8 jres. You could try copying the classpath from the java 8 version to your java 7 install, but you might be on a hiding doing that. Previous versions of javafx which you had to install were never built for arm processors.

It might be buildable from java sources of newer versions against a java 7/1.7 jdk, but I've not tried any of that myself, so this is entirely my own guesswork.
I was using a jre8 this time (the one from azul I linked before).
 

ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
8,642
Age
47
Location
France, near Lyon
So I built rust 1.34 (I had 1.23 before), and was able to build the javaws binary... But it's doing exactly the same thing :(

Now, openning the jnlp file, I see that the main class is defined by the last entry of the xml file
Code:
<application-desc main-class="com.wurmonline.client.launcherfx.WurmMain"  name="Wurm Online" />
I wonder if icedtea javaws is indeed looking at this entry for the main class name or something else. I'll probably try to look the code, see I find something.
 

levi

Still fresh, damnit!
Joined
Oct 6, 2008
Messages
12,297
Location
Somewhere off the coast of the EU
The log from your previous posting claimed it was starting with that class certainly. It wasn't part of the stack trace, but it was there in a log message. The stack trace looks to me like it was still setting up classes, but I guess it's an artefact of multithreading or the jit that it was able to log that before it crashed in a previous process. Either that or it was emited by the javaws runner before it actually started java proper.
 

EvilDragon

Administrator
Staff member
Joined
Mar 4, 2003
Messages
29,477
Age
42
Location
Ingolstadt
Hm, is there a chance the JAVA stuff will run a bit faster? There's a full Lionheart Remake for Java and it ran almost fullspeed (years ago...)
It should work fine if Java would be a bit faster :)
 

ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
8,642
Age
47
Location
France, near Lyon
The log from your previous posting claimed it was starting with that class certainly. It wasn't part of the stack trace, but it was there in a log message. The stack trace looks to me like it was still setting up classes, but I guess it's an artefact of multithreading or the jit that it was able to log that before it crashed in a previous process. Either that or it was emited by the javaws runner before it actually started java proper.
Ah yes, indeed, I see a "Starting application..." message. I need to find where those jar are downloaded to have a look at them.

Hm, is there a chance the JAVA stuff will run a bit faster? There's a full Lionheart Remake for Java and it ran almost fullspeed (years ago...)
It should work fine if Java would be a bit faster :)
I remember this. I'll test later with various JDK, see I found some playable settings.
 

fusion_power

Advanced Member
Joined
Dec 25, 2005
Messages
13,090
Location
germany
Website
Visit site
My only experience with Java on Pandora is, that the open source Java runs much much worse than the Oracle version, sadly. However I never had the impression that Java ever runs well and fast, no matter where it is used. XD
 

levi

Still fresh, damnit!
Joined
Oct 6, 2008
Messages
12,297
Location
Somewhere off the coast of the EU
There's no such thing as Java release from Oracle these days, since java 7 or 8ish the core JVM and the classes have been part of the OpenJDK project, and Sun/Oracle just picked those up and republished them as official releases. I'm not sure why you'd have experience of the official jre being faster than openjre in that case.
 

fusion_power

Advanced Member
Joined
Dec 25, 2005
Messages
13,090
Location
germany
Website
Visit site
The version I have on my Pandora let you choose which version do you want to install, the Orcacle or an open source version of Java.
 

ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
8,642
Age
47
Location
France, near Lyon
and the Java PND is a bit old yes. So it's from the Java 7 era... and yes, only the Oracle one have correct performances in that case.
 
Top