Sun Java missing javaws - breaks various applications

Bug #774061 reported by Reuben Firmin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: sun-java6-bin

After installing sweethome3d on a fresh 11.04 install, it won't launch, due to a missing jar in the sun-java JRE:

[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.

Revision history for this message
ehcpdeveloper (ehcpdeveloper) wrote :

any solution ?

Changed in sun-java6 (Ubuntu):
status: New → Confirmed
Revision history for this message
ehcpdeveloper (ehcpdeveloper) wrote :
Download full text (4.3 KiB)

aptitude search jre
p default-jre - Standard Java or Java compatible Runtime
p default-jre-headless - Standard Java or Java compatible Runtime (headless)
p docbook-jrefentry - DocBook XML JRefEntry DTD
p gcj-4.4-jre - Java runtime environment using GIJ/classpath
p gcj-4.4-jre-headless - Java runtime environment using GIJ/classpath (headless version)
p gcj-4.4-jre-lib - Java runtime library for use with gcj (jar files)
p gcj-4.5-jre - Java runtime environment using GIJ/classpath
p gcj-4.5-jre-headless - Java runtime environment using GIJ/classpath (headless version)
p gcj-4.5-jre-lib - Java runtime library for use with gcj (jar files)
p gcj-jre - Java runtime environment using GIJ/classpath
p gcj-jre-headless - Java runtime environment using GIJ/classpath (headless version)
i A icedtea-6-jre-cacao - Alternative JVM for OpenJDK, using Cacao
i A icedtea-6-jre-jamvm - Alternative JVM for OpenJDK, using JamVM
v icedtea6-jre-cacao -
i openjdk-6-jre - OpenJDK Java runtime, using Hotspot JIT
i A openjdk-6-jre-headless ...

Read more...

Revision history for this message
ehcpdeveloper (ehcpdeveloper) wrote :

i think this is caused by sweethome, which looks for sun java files directly. trying to find a solution.

Revision history for this message
ehcpdeveloper (ehcpdeveloper) wrote :

I put javaws.jar from another package as file to /usr/lib/jvm/java-6-sun/jre/lib/javaws.jar
then, the problem seems solved.
sweethome started.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.