Sweet Home 3d requires Java and will not start
- Anmelden oder Registrieren um Kommentare zu schreiben
I found the program "Sweet Home 3d" in the repos and installed it, but it will not start due to a java related problem. I have all the Free Java things installed, but still I get:
[warning] /usr/bin/sweethome3d: Unable to locate /usr/lib/jvm/java-6-sun/jre/lib/javaws.jar in /usr/share/java
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jnlp/UnavailableServiceException
Caused by: java.lang.ClassNotFoundException: javax.jnlp.UnavailableServiceException
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: com.eteks.sweethome3d.SweetHome3D. Program will exit.
Is this supposed to work with Trisquel? Has anyone got it working?
I get this error too. Perhaps the program is hardcoded to use Sun's Java. Please file a bug.
You could try making java-6-sun a symlink to OpenJDK:
sudo ln -s /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun
That said I'm not sure that'd work... I'm not even certain Java Web Start is
supported in openjdk.
Unfortunately that will not work as there is no javaws.jar.
This bug was reported in debian; a workaround is suggested here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626050#15
Now this works! Thanks for the legwork Adrian!
I filed a bug https://trisquel.info/en/issues/5011
I know this thread is a little old but for anyone who is looking for a fix
the bug has been fixed in Trisquel 5.5 from upstream.
You could try making java-6-sun a symlink to OpenJDK:
sudo ln -s /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun
That said I'm not sure that'd work... I'm not even certain Java Web Start is supported in openjdk.
Unfortunately that will not work as there is no javaws.jar.
This bug was reported in debian; a workaround is suggested here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626050#15
Now this works! Thanks for the legwork Adrian!
I filed a bug https://trisquel.info/en/issues/5011
I know this thread is a little old but for anyone who is looking for a fix the bug has been fixed in Trisquel 5.5 from upstream.
- Anmelden oder Registrieren um Kommentare zu schreiben