Menu

#11 jsummerx fails to start

open-accepted
GUI (5)
5
2010-01-20
2010-01-16
Stumpy842
No

jsummerx fails to start. When started from a console the following error is displayed:

$ jsummerx
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Layout
at com.de.zerosys.JSummer.JSummerX.main(JSummerX.java:19)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Layout
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:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
... 1 more

This is from an installation of the java rpm, jsummer-java-0.1.0.0-1.noarch.rpm

Discussion

  • Stumpy842

    Stumpy842 - 2010-01-16

    I was able to fix the package by rebuilding the rpm and replacing the %define for swtjar with the correct path. I also feel the package may not work as noarch, because my path to the swtjar is /usr/lib64/eclipse/... which is arch-specific.

     
  • Stumpy842

    Stumpy842 - 2010-01-16
    • status: open --> open-fixed
     
  • Klaus Zerwes zero-sys.net

    • assigned_to: nobody --> zerosys
    • status: open-fixed --> open-accepted
     
  • Klaus Zerwes zero-sys.net

    The software is missing the required SWT package (libswt3-gtk2).

    What distribution are you using?

     
  • Anonymous

    Anonymous - 2010-01-21

    I'm using Unity Linux, which is a Mandriva offshoot. As I mentioned, the original rpm as provided uses the wrong path for the swt-gtk jar file, so I pulled down the source tarball and after noting that it contains a spec file for rpm, just edited that and changed the %define to:

    %define swtjar %{_libdir}/eclipse/swt-gtk-3.4.jar

    A quick rpmbuild alter and voila, everything is working now. Thanks for a nice little app!

    Steve -aka- Stumpy
    http://www.unity-linux.org

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.