Processing.org 64-bit workaround

November 1, 2011 at 22:07 | Posted in Guides | Leave a comment
Tags: , , ,

If this is the error you are receiving on your 64-bit Processing installation, fear not:

[susie@neptune processing-1.5.1]$ ./processing
[susie@neptune processing-1.5.1]$ Exception in thread “main” java.lang.UnsatisfiedLinkError: /home/susie/processing-1.5.1/java/lib/i386/xawt/libmawt.so: libXtst.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:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1720)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1605)
at java.awt.Toolkit.<clinit>(Toolkit.java:1627)
at processing.app.Base.<clinit>(Base.java:445)
Could not find the main class: processing.app.Base.  Program will exit.

I have a simple workaround for you.

  1. Locate Java

    [susie@neptune ~]$ whereis java
    java: /usr/bin/java /usr/share/man/man1/java.1.gz
    [susie@neptune ~]$ stat /usr/bin/java
    File: `/usr/bin/java’ -> `/usr/lib/jvm/java-6-openjdk/bin/java
    Size: 36            Blocks: 0          IO Block: 4096   symbolic link
    Device: 803h/2051d    Inode: 561896      Links: 1
    Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2011-11-01 21:31:18.565298115 -0400
    Modify: 2011-07-21 12:59:19.000000000 -0400
    Change: 2011-09-21 12:29:33.009908239 -0400
    Birth: -

  2. Use that Java instead

    [susie@neptune processing-1.5.1]$ mv java java.bak
    [susie@neptune processing-1.5.1]$ ln -T /usr/lib/jvm/java-6-openjdk ./java –symbolic

Tada! 奇跡です。

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.

Follow

Get every new post delivered to your Inbox.