LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Alice animation program and Ubuntu (http://www.linuxquestions.org/questions/linux-software-2/alice-animation-program-and-ubuntu-800213/)

Maestro01 04-05-2010 06:33 PM

Alice animation program and Ubuntu
 
I have been trying to install Alice on the latest version of Ubuntu
but keep getting java and or Alice errors. Have not yet found a version
set up for Ubuntu and nothing shows up in the repositories.
Any suggestions, help greatly appreciated.

{BBI}Nexus{BBI} 04-05-2010 07:37 PM

This may help: https://lists.ubuntu.com/archives/ub...er/000116.html

Also this: http://www.alice.org/community/showthread.php?t=1538

Maestro01 04-06-2010 12:15 PM

Quote:

Originally Posted by {BBI}Nexus{BBI} (Post 3925530)

Thought that replacing the Java-jre with the java-jdk might do it as
suggested here but to no avail. This is what I get from Alice:
./run-alice
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
at java.lang.Runtime.load0(Runtime.java:787)
at java.lang.System.load(System.java:1022)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1747)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1664)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1614)
at java.awt.Toolkit.<clinit>(Toolkit.java:1636)
at java.awt.Color.<clinit>(Color.java:279)
at edu.cmu.cs.stage3.alice.scenegraph.Color.<clinit>(Color.java:31)
at edu.cmu.cs.stage3.alice.authoringtool.JAlice.<clinit>(JAlice.java:32)
Could not find the main class: edu.cmu.cs.stage3.alice.authoringtool.JAlice. Program will exit.

Maestro01 04-07-2010 06:23 PM

Quote:

Originally Posted by Maestro01 (Post 3926413)
Thought that replacing the Java-jre with the java-jdk might do it as
suggested here but to no avail. This is what I get from Alice:
./run-alice
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
at java.lang.Runtime.load0(Runtime.java:787)
at java.lang.System.load(System.java:1022)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1747)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1664)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1614)
at java.awt.Toolkit.<clinit>(Toolkit.java:1636)
at java.awt.Color.<clinit>(Color.java:279)
at edu.cmu.cs.stage3.alice.scenegraph.Color.<clinit>(Color.java:31)
at edu.cmu.cs.stage3.alice.authoringtool.JAlice.<clinit>(JAlice.java:32)
Could not find the main class: edu.cmu.cs.stage3.alice.authoringtool.JAlice. Program will exit.

*****************************************************
OK. I find that the link: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so is incorrect for my system, perhaps Ubuntu generally.
Should be: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/headless/libmawt.so
as that is where the .so file is located. Wonder how many other
changes have occurred and if there is a better version I could
install to get Alice running.

Maestro01 04-11-2010 04:41 PM

Alice and Ubuntu. Problem solved
 
Quote:

Originally Posted by Maestro01 (Post 3927969)
*****************************************************
OK. I find that the link: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so is incorrect for my system, perhaps Ubuntu generally.
Should be: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/headless/libmawt.so
as that is where the .so file is located. Wonder how many other
changes have occurred and if there is a better version I could
install to get Alice running.

Finally got Alice to run using the info on this page:
https://help.ubuntu.com/community/Java
It takes more than just installing Java; it also takes making
the program aware of Java. Note the lines at the bottom of the page.
Thanks to everyone.


All times are GMT -5. The time now is 11:29 AM.