Can't launch Adom II on Ubuntu 12
issueid=1089 05-28-2012 01:35 PM
Junior Member
Number of reported issues by akamaus: 1
Can't launch Adom II on Ubuntu 12
Get a permission error

Tried using OpenJDK 1.6.0_24 and Sun JRE 1.7.0_04. Get the following error:

net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file.
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:600)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:889)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:594)
... 1 more
Caused by: java.lang.ExceptionInInitializerError
at de.adom.jade.kernel.game.Game.getDirectoryManager(SourceFile:707)
at de.adom.jade.JADE.a(SourceFile:235)
at de.adom.jade.JADE.<init>(SourceFile:62)
at de.adom.jade.JADE.main(SourceFile:173)
... 6 more
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
at java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
at java.lang.System.getProperty(System.java:669)
at de.adom.jade.kernel.cfg.Setting.<clinit>(SourceFile:35)
... 10 more
Caused by:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:594)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:889)
Caused by: java.lang.ExceptionInInitializerError
at de.adom.jade.kernel.game.Game.getDirectoryManager(SourceFile:707)
at de.adom.jade.JADE.a(SourceFile:235)
at de.adom.jade.JADE.<init>(SourceFile:62)
at de.adom.jade.JADE.main(SourceFile:173)
... 6 more
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
at java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
at java.lang.System.getProperty(System.java:669)
at de.adom.jade.kernel.cfg.Setting.<clinit>(SourceFile:35)
... 10 more
Issue Details
Issue Number 1089
Project ADOM II (formerly known as JADE)
Category Unknown
Status Won't Fix
Priority Unknown
Affected Version ADOM II 0.2.8
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




08-19-2012 12:18 AM
The Creator
ADOM II 0.2.8 only supports Java 6. And OpenJDK is known to be buggy beyond belief (especially as far as JavaWeb Start goes). Sorry, nothing I can do.

09-08-2012 02:37 PM
Junior Member
Hi! To give a slightly ambiguous howto regarding dealing with this problem...

What one can do is simply avoid javaws completely and execute manually with java. However, there seems to be no way to force correct main class name when using java -jar, so what one must do is to unpack all the jar files in some directory... (At least AFAIK, I'm not a Java expert.)

So to get it going, make some directory in your ~, e.g. ~/adom2/. Try to open the webstart file; I assume that will be unsuccessful, but it will download the jar files. Now open a terminal and:

[pre]
cd ~/adom2
find ~/.icedtea/cache/ -name '*.jar' | grep adom
# Verify that this lists some ADOM and jade jar files. If not, try looking e.g. in ~/.java for the files but it will take more effort.
cp `find ~/.icedtea/cache/ -name '*.jar' | grep adom` .
# This copied the files to our ~/adom2 directory.
for i in *.jar; do unzip $i; done
# This will unpack all of the jar files. Answer "All" to any questions regarding overwrites, the overwrites are harmless.
sudo apt-get install libspring-beans-java libspring-context-java libspring-core-java libasm3-java
# This will install some dependencies that did not get downloaded by webstart for some reason.
for i in /usr/share/java/spring3-core.jar /usr/share/java/spring3-context.jar /usr/share/java/spring3-beans.jar /usr/share/java/asm3-all.jar; do unzip $i; done
# This will unpack them.
java de.adom.jade.JADE
# If you are lucky, this will work. Next time you want to start it, just cd to ~/adom2 and run this last command.
[/pre]

Hope that helps, maybe you will need to do some small tweaks..

Anyway, for me the application freezes always after exiting inventory list (the inventory window closes but the main window menus stay all greyed out and keypresses have no effect)...

+ Reply