Results 1 to 6 of 6

Thread: LightZone and Java Issues.

  1. #1
    Join Date
    Jun 2014
    Location
    Denver, Colorado, USA
    Posts
    4

    Default LightZone and Java Issues.

    Hello everyone, I am hoping that one of my fellow SUSE guru's can help me from banging my head on my desk much longer.

    Im a photographer, and my primary tool of choice is LightZone. I don't use a lot of Java apps, as my current laptop is terribly old. Thankfully, Lightzone is available from the developers in one of the repos. However, when I attempt to run the program, im being given a very long annoying Exception.

    What i've tried so far is using various versions of java, in the hopes that LZ was just being picky:
    openJDK 7
    openJDK 8
    neither one worked.... so i went and downloaded Oracle Java and JDK's
    jre-1.8.0_25
    jdk-1.8.0_25
    I followed the guide here: https://en.opensuse.org/SDB:Installing_Java

    It didn't work.

    so then I downgraded to jre/jdk 1.7.0_71

    Still no go.

    The following is my java-config info:
    Code:
     
    
      Selection    Path                                     Priority   Status
    ------------------------------------------------------------
      0            /usr/lib/jvm/jre-1.8.0-openjdk/bin/java   18040     auto mode
    * 1            /usr/java/latest/bin/java                 1         manual mode
      2            /usr/lib/jvm/jre-1.5.0-gcj/bin/java       1500      manual mode
      3            /usr/lib/jvm/jre-1.7.0-openjdk/bin/java   17147     manual mode
      4            /usr/lib/jvm/jre-1.8.0-openjdk/bin/java   18040     manual mode
    This is the error i receive when trying to run LightZone.

    Code:
    dubkat@andromeda:~> lightzone
    Starting LightZone version 4.1.0 beta14 ...
    with options :
    This is LightZone 4.1.0~beta14 ()
    java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
            at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
            at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source)
            at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
            at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
            at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
            at java.util.prefs.XmlSupport.loadPrefsDoc(XmlSupport.java:250)
            at java.util.prefs.XmlSupport.importMap(XmlSupport.java:375)
            at java.util.prefs.FileSystemPreferences$6.run(FileSystemPreferences.java:575)
            at java.util.prefs.FileSystemPreferences$6.run(FileSystemPreferences.java:568)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.util.prefs.FileSystemPreferences.loadCache(FileSystemPreferences.java:567)
            at java.util.prefs.FileSystemPreferences.initCacheIfNecessary(FileSystemPreferences.java:550)
            at java.util.prefs.FileSystemPreferences.getSpi(FileSystemPreferences.java:527)
            at java.util.prefs.AbstractPreferences.get(AbstractPreferences.java:287)
            at java.util.prefs.AbstractPreferences.getBoolean(AbstractPreferences.java:498)
            at com.lightcrafts.app.StartupCrash.checkLastStartupSuccessful(StartupCrash.java:49)
            at com.lightcrafts.app.Application.main(Application.java:2154)
            at com.lightcrafts.platform.linux.LinuxLauncher.main(LinuxLauncher.java:45)
    Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
            at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
            ... 34 more

    I am currently using a relatively new install, openSUSE 20150106 (Tumbleweed) (i586)
    Thanks for your help!

    Dan

  2. #2
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: LightZone and Java Issues.

    I think you are missing a jar file, a quick google suggests you're missing xml-apis.jar
    try installing xerces-j2-xml-apis
    Code:
    sudo zypper in xerces-j2-xml-apis
    about the java rt, how are you calling on Oracle's runtime?
    if you have multiple java virtual machines installed you need to use it's full path

    ex.
    to use Oracle's java 1.7
    Code:
    /usr/lib/jvm/jre-1.7.0-openjdk/bin/java -jar <jar-file-to-execute.jar>

  3. #3
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: LightZone and Java Issues.

    how did you install lightzone?
    there seams to be an official openSUSE repo
    if you installed it via zypper or Yast most dependencies should have been automatically fixed.
    lighzone might need openJDK 1.7
    set it as the default java virtual machine

    more info here
    https://software.opensuse.org/downlo...kage=lightzone

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,371

    Default Re: LightZone and Java Issues.

    Quote Originally Posted by dubkat View Post
    I am currently using a relatively new install, openSUSE 20150106 (Tumbleweed) (i586)
    Thanks for your help!

    Dan
    There is a Tumbleweed forum for those who want help from other Tumbleweed users.
    Henk van Velden

  5. #5
    Join Date
    Jun 2014
    Location
    Denver, Colorado, USA
    Posts
    4

    Default Re: LightZone and Java Issues.

    Quote Originally Posted by I_A View Post
    how did you install lightzone?
    there seams to be an official openSUSE repo
    if you installed it via zypper or Yast most dependencies should have been automatically fixed.
    lighzone might need openJDK 1.7
    set it as the default java virtual machine

    more info here
    https://software.opensuse.org/downlo...kage=lightzone
    This is exactly where I installed it from.

  6. #6
    Join Date
    Jun 2014
    Location
    Denver, Colorado, USA
    Posts
    4

    Thumbs up Re: LightZone and Java Issues.

    Quote Originally Posted by I_A View Post
    I think you are missing a jar file, a quick google suggests you're missing xml-apis.jar
    try installing xerces-j2-xml-apis
    Code:
    sudo zypper in xerces-j2-xml-apis
    You win the golden prize, thank you much.

    This solved my issue, and lightzone now loads proper. I am a happy camper today.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •