Impossible to save a texture library in sweethome3d-texture-editor

Bug #1364387 reported by Rémi Pannequin
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
sweethome3d (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When saving a texture library, a ClassNotFound Exception occurs:

java.lang.NoClassDefFoundError: com/eteks/sweethome3d/io/DefaultTexturesCatalog$PropertyKey
 at com.eteks.textureslibraryeditor.io.TexturesLibraryFileRecorder.writeTexturesLibraryProperties(Unknown Source)
 at com.eteks.textureslibraryeditor.io.TexturesLibraryFileRecorder.writeTexturesLibrary(Unknown Source)
 at com.eteks.textureslibraryeditor.io.TexturesLibraryFileRecorder.writeTexturesLibrary(Unknown Source)
 at com.eteks.textureslibraryeditor.viewcontroller.EditorController$7.call(Unknown Source)
 at com.eteks.textureslibraryeditor.viewcontroller.EditorController$7.call(Unknown Source)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at com.eteks.sweethome3d.viewcontroller.ThreadedTaskController$1.run(Unknown Source)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.eteks.sweethome3d.io.DefaultTexturesCatalog$PropertyKey
 at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 ... 12 more

The class DefaultTexturesCatalog is missing from sweethome3d-textures-editor.jar, but is presnt in sweethome3d.jar;

Adding the line find_jars /usr/share/sweethome3d/sweethome3d-textures-editor.jar in the launcher sweethome3d-textures-editor.sh solved the issue.

Tags: patch
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sweethome3d (Ubuntu):
status: New → Confirmed
Revision history for this message
SirG (sirg-nj) wrote :

I think you meant to add a line "find_jars /usr/share/sweethome3d/sweethome3d.jar"

Works for me. Patch attached.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "sweethome3d-textures-editor.sh.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Haim (haim.n) wrote :

@SirG The patch worked for me too.
Thank you.

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.