Sweet Home 3d requires Java and will not start

11 respuestas [Último envío]
Jayn
Desconectado/a
se unió: 08/27/2010

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?

lembas
Desconectado/a
se unió: 05/13/2010

I get this error too. Perhaps the program is hardcoded to use Sun's Java. Please file a bug.

Adrian Malacoda

I am a member!

Desconectado/a
se unió: 12/26/2010

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.

lembas
Desconectado/a
se unió: 05/13/2010

Unfortunately that will not work as there is no javaws.jar.

Adrian Malacoda

I am a member!

Desconectado/a
se unió: 12/26/2010

This bug was reported in debian; a workaround is suggested here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626050#15

lembas
Desconectado/a
se unió: 05/13/2010

Now this works! Thanks for the legwork Adrian!

I filed a bug https://trisquel.info/en/issues/5011

SirGrant

I am a member!

I am a translator!

Desconectado/a
se unió: 07/27/2010

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.

Adrian Malacoda

I am a member!

Desconectado/a
se unió: 12/26/2010

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.

lembas
Desconectado/a
se unió: 05/13/2010

Unfortunately that will not work as there is no javaws.jar.

Adrian Malacoda

I am a member!

Desconectado/a
se unió: 12/26/2010

This bug was reported in debian; a workaround is suggested here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626050#15

lembas
Desconectado/a
se unió: 05/13/2010

Now this works! Thanks for the legwork Adrian!

I filed a bug https://trisquel.info/en/issues/5011

SirGrant

I am a member!

I am a translator!

Desconectado/a
se unió: 07/27/2010

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.