4 Replies Latest reply: Oct 24, 2008 6:28 AM by 843785 RSS

    libmawt.so: libXext.so.6: cannot open shared object file: No such file or?

    843785
      Have just, with a bit of a struggle, installed the combined netbeans IDE and JDK using the both at the same time *.sh in Debian Linux.

      Built the anagram demonstration project, and, as it suggests, tried to do:

      $ /home/lugo/Java/jdk1.6.0_07/bin/java -jar /home/lugo/NetBeansProjects/AnagramGame/dist/anagrams.jar

      Here's the output:

      lugo@asus:~/Java/Ide$ /home/lugo/Java/jdk1.6.0_07/bin/java -jar /home/lugo/NetBeansProjects/AnagramGame/dist/anagrams.jar -agentpath:/usr/lib
      Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/lugo/Java/jdk1.6.0_07/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
      at java.lang.Runtime.load0(Runtime.java:770)
      at java.lang.System.load(System.java:1005)
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
      at java.lang.Runtime.loadLibrary0(Runtime.java:823)
      at java.lang.System.loadLibrary(System.java:1030)
      at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
      at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
      at java.awt.Component.<clinit>(Component.java:552)

      Was going to say libXext.so.6 is on the computer. But, from memory, it may be libXext.so. So better check that. However it probably is libXext.so.6 that's on.

      Thanks any help.

      Edited by: Lugo on Sep 26, 2008 2:13 AM