View Full Version : alice on linux
ShakeYoSenses
12-01-2006, 05:38 PM
is it possible to use the Alice software on linux systems like Ubuntu?
We have had 2 reports from Alice users regarding Ubuntu 6.06.
One reported success.
The other, using a 64-bit AMD system with nVidia video drivers, was unsuccessful.
Please try it out and let us know your results!
EdyEft
12-03-2006, 12:38 PM
We have had 2 reports from Alice users regarding Ubuntu 6.06.
One reported success.
The other, using a 64-bit AMD system with nVidia video drivers, was unsuccessful.
Please try it out and let us know your results!
I'm running it on Ubuntu 6.10 using the multi-verse repository sun java packages. The GNU java package defaulted in Ubuntu kicks up some errors on start and fails, Suns works fine.
make sure you either uninstall gnu java OR sudo update-alternative -java in ubuntu to set sun's as the default java version (you can tell by running java -version and if it's sun's your good) Hope this helps
Console Dump For Exact Versions
Alice version: 2.0.7
os.name: Linux
os.version: 2.6.17-10-386
os.arch: i386
java.vm.name: Java HotSpot(TM) Client VM
java.vm.version: 1.5.0_08-b03
user.dir:
modvavet
06-27-2007, 12:53 PM
I've got it running on Kubuntu 7.04 (feisty). I'm actually currently using it for a class project. It's a bit quirky (it has a nasty habit of crashing the gui and restarting x-server), but other than that, it all seems to work...
HowardF64
10-03-2007, 12:58 AM
Hi,
I thought I'd report to the group that I've been able to run Alice on my Dell Laptop which I made dual boot with SuSE 10.1.
I had to turn off compiz to get it to work (and the animation is a bit slow)
I don't know the exact specs of this computer (never worried about it), but it's 32-bit, Intel Centrino, Intel 915GM graphics card. Anything else you need to know?
_Howard
pbceeman75
12-26-2007, 11:04 PM
I got Alice to work on Ubuntu 7.10 AMD64 with nVidia drivers. I had to download http://download.java.net/media/jogl/builds/nightly/jogl-1.1.1-rc7-linux-amd64.zip and replace the contents of jogl/lib under alice with these files. I then modified my run-alice as follows:
/usr/lib/jvm/java-1.5.0-sun/bin/java -classpath ./gnu/getopt-1.0.7.jar:./jogl/lib/gluegen-rt.jar:./jython-2.1/jython.jar:./lib/alice.jar:./jogl/lib/jogl.jar:./xerces-2_6_2/resolver.jar:./vecmath/lib/ext/vecmath.jar:./xerces-2_6_2/xercesImpl.jar:./xerces-2_6_2/xml-apis.jar:./xerces-2_6_2/xmlParserAPIs.jar:./JMF-2.1.1e/lib/customizer.jar:./JMF-2.1.1e/lib/jmf.jar:./JMF-2.1.1e/lib/mediaplayer.jar:./JMF-2.1.1e/lib/multiplayer.jar:./mp3/lib/ext/mp3plugin.jar -Dpython.home=./jython-2.1 -Djava.library.path=./jogl/lib/linux-i586 -Xincgc -Xmx512m -Dalice.useJavaBasedSplashScreen=false edu.cmu.cs.stage3.alice.authoringtool.JAlice -o -e
tullygray
07-24-2008, 10:07 AM
I'm running it on my gentoo system with sun-jdk-1.6 and it seems that I can't click and drag. I've only just started using it so I can't really add much else.
:o
tullygray
07-27-2008, 04:19 AM
Ok java 1.4 let's me drag-and-drop. All systems go...
hdixon
08-05-2008, 02:25 PM
I have installed it on Ubuntu 8.04. It "runs" but manipulating the objects using drag n drop in any of the windows is very slow. The first time I installed it and test ran it the objects moved around just fine with the mouse. Drag n drop starting with the second time the application started has been a bit problematic. Not sure whats going on. Need to lok at the java versions I guess and try the alternates.
goldenfleece
01-26-2009, 06:05 PM
I saw this attempt by pbceeman (below). I'm trying something very similar on Ubuntu 8.04. I did the a similar jobl/lib replacement using older 1.0.0 jogl files. I may need to change my run-alice file but I may also need to use a different set of jogl files. Another installer mentioned that 32 bit installs are more successful. If anyone figures this out, I'd love to know how you did it. :)
I got Alice to work on Ubuntu 7.10 AMD64 with nVidia drivers. I had to download http://download.java.net/media/jogl/builds/nightly/jogl-1.1.1-rc7-linux-amd64.zip and replace the contents of jogl/lib under alice with these files. I then modified my run-alice as follows:
/usr/lib/jvm/java-1.5.0-sun/bin/java -classpath ./gnu/getopt-1.0.7.jar:./jogl/lib/gluegen-rt.jar:./jython-2.1/jython.jar:./lib/alice.jar:./jogl/lib/jogl.jar:./xerces-2_6_2/resolver.jar:./vecmath/lib/ext/vecmath.jar:./xerces-2_6_2/xercesImpl.jar:./xerces-2_6_2/xml-apis.jar:./xerces-2_6_2/xmlParserAPIs.jar:./JMF-2.1.1e/lib/customizer.jar:./JMF-2.1.1e/lib/jmf.jar:./JMF-2.1.1e/lib/mediaplayer.jar:./JMF-2.1.1e/lib/multiplayer.jar:./mp3/lib/ext/mp3plugin.jar -Dpython.home=./jython-2.1 -Djava.library.path=./jogl/lib/linux-i586 -Xincgc -Xmx512m -Dalice.useJavaBasedSplashScreen=false edu.cmu.cs.stage3.alice.authoringtool.JAlice -o -e
donnied
03-07-2009, 09:02 AM
I got Alice to work on Ubuntu 7.10 AMD64 with nVidia drivers. I had to download http://download.java.net/media/jogl/builds/nightly/jogl-1.1.1-rc7-linux-amd64.zip
This link is dead. I tried Alice with 64 bit Debian and that didn't work so I thought a 32 bit chroot might help. They both froze in the same place. Is there a link to the Linux source code somewhere?
donnied
03-07-2009, 10:31 AM
The answer does seem to be in the jogl files.
To get Alice working with 64 bit Alice I tried a few different things. At the end I
aptitude install ia32-sun-java5-bin
aptitude install sun-java6-jdk
update-alternatives --config java
This should be straight forward. I tried the jogl change with Java 6 and it didn't work. I tried with ia-32 and it didn't work. Then I tried again with Java 6 and it worked.
First get the jogl files from https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=5971&expandFolder=5971&folderID=271. (It's not the JRE but the jogl files included in Alice).
Unzip the archive.
cp jogl-1_0_0-linux-amd64/lib/*so to the Required/jogl/lib/linux-i586/ directory.
Use update alternatives to try with the ia32-Java5 (it shouldn't work).
Then update alternatives to use Java 6 from Sun and it should work.
donnied
03-07-2009, 07:56 PM
Nevermind. I was wrong. I went back and tried to use it Alice again and it didn't work.
goldenfleece
03-07-2009, 08:12 PM
Well, thanks for trying. Let me know if you find anything else. I'm still attempting to get it working but with no success to date.
donnied
04-26-2009, 08:26 PM
Well. I got it working. I used the jogl solution. I've found though that I have to cycle through all the Javas installed on my system. I do update-alternatives --config java and choose the different Javas. It works using OpenJDK (oddly enough, as opposed to Sun 6 Java…). I can use it, but the procedure to get it working is odd (not the jogl bit but rather cycling through all installed Javas…).
homer.xing
07-01-2009, 12:01 AM
I downloaded "Alice" from
http://www.alice.org/downloads/authoringtool/linux_readme.htm ,
then download "jogl" from
https://jogl.dev.java.net/.
and unpack "gluegen-rt.jar" "jogl.jar" into the folder 'jogl/lib/',
"libjogl_cg.so" "libjogl_awt.so" "libjogl.so" "libgluegen-rt.so" into the folder "jogl/lib/linux-i586".
I modified the file "run-alice" as
java -classpath ./gnu/getopt-1.0.7.jar:\
./jython-2.1/jython.jar:\
./lib/alice.jar:\
./jogl/lib/jogl.jar:\
./xerces-2_6_2/resolver.jar:\
./vecmath/lib/ext/vecmath.jar:\
./xerces-2_6_2/xercesImpl.jar:\
./xerces-2_6_2/xml-apis.jar:\
./xerces-2_6_2/xmlParserAPIs.jar:\
./JMF-2.1.1e/lib/customizer.jar:\
./JMF-2.1.1e/lib/jmf.jar:\
./JMF-2.1.1e/lib/mediaplayer.jar:\
./JMF-2.1.1e/lib/multiplayer.jar:\
./mp3/lib/ext/mp3plugin.jar:\
./jogl/lib/gluegen-rt.jar:\
./jogl/lib/jogl.jar:\
-Dpython.home=./jython-2.1\
-Djava.library.path=./jogl/lib/linux-i586\
-Xincgc -Xmx512m\
-Dalice.useJavaBasedSplashScreen=false\
edu.cmu.cs.stage3.alice.authoringtool.JAlice -o -e
Then "Alice" successfully works!:cool:
phoe6
07-17-2009, 11:49 PM
There is one caveat in the solution mentioned by homer.xing.
If you Ubuntu Linux 64 bit is x86_64, you still have to Download AMD64 version of jogl from
jogl (http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1a/jogl-1.1.1a-linux-amd64.zip) and follow the steps exactly as mentioned.
I had downed jogl Linux i586 version, but it did not work, jogl AMD 64 version works.:)
I downloaded "Alice" from
http://www.alice.org/downloads/authoringtool/linux_readme.htm ,
then download "jogl" from
https://jogl.dev.java.net/.
and unpack "gluegen-rt.jar" "jogl.jar" into the folder 'jogl/lib/',
"libjogl_cg.so" "libjogl_awt.so" "libjogl.so" "libgluegen-rt.so" into the folder "jogl/lib/linux-i586".
I modified the file "run-alice" as
java -classpath ./gnu/getopt-1.0.7.jar:\
./jython-2.1/jython.jar:\
./lib/alice.jar:\
./jogl/lib/jogl.jar:\
./xerces-2_6_2/resolver.jar:\
./vecmath/lib/ext/vecmath.jar:\
./xerces-2_6_2/xercesImpl.jar:\
./xerces-2_6_2/xml-apis.jar:\
./xerces-2_6_2/xmlParserAPIs.jar:\
./JMF-2.1.1e/lib/customizer.jar:\
./JMF-2.1.1e/lib/jmf.jar:\
./JMF-2.1.1e/lib/mediaplayer.jar:\
./JMF-2.1.1e/lib/multiplayer.jar:\
./mp3/lib/ext/mp3plugin.jar:\
./jogl/lib/gluegen-rt.jar:\
./jogl/lib/jogl.jar:\
-Dpython.home=./jython-2.1\
-Djava.library.path=./jogl/lib/linux-i586\
-Xincgc -Xmx512m\
-Dalice.useJavaBasedSplashScreen=false\
edu.cmu.cs.stage3.alice.authoringtool.JAlice -o -e
Then "Alice" successfully works!:cool:
rdlatimer
09-10-2009, 12:18 PM
Here's the error message I get with run-alice. Let me know if any one can help,
I'd like to get Alice up and running
/Alice/Required/jogl/lib/linux-i586/libjogl_drihack.so: /afs/csl.tjhsst.edu/staff/rdlatimer/Alice2-0-0/Alice/Required/jogl/lib/linux-i586/libjogl_drihack.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
phoe6
09-10-2009, 12:25 PM
Did you follow the steps mentioned in the previous step of doing jogl and AMD64 bit libs?
EvilQueenRinoa
09-13-2009, 09:33 PM
I am currently running Ubuntu 9.04 but I am not at all familiar with getting ANYTHING to work in it. I love using it for my simple daily tasks but when it comes to any kind of admin, I seem to mess it up every time. I am currently enrolled in a Computer Programming class at my local college and we are using Alice for our homework assignments. Both of my personal computers run Ubuntu so I really need to get it running. I have had problems even getting the download started (I think the server must be down or something) but beyond that, I am totally clueless. Can anyone help me?
phoe6
09-15-2009, 01:24 AM
Hello EvilQueenRaina:
There are a good number of expert users in Linux and they would be helpful to you with the problems that you are facing as a new user.
Ignore this thread. But just go to alice download page and download alice for linux, Right click on the file extract and click on runalice.
See if you are successful with that.
Happy programming.
EvilQueenRinoa
09-16-2009, 02:34 PM
Phoe6:
Thank you for the reply. I downloaded it and extracted it to my desktop. Then, I opened it and clicked on the "run-alice" document. I got a pop up message and I clicked run, but nothing happens. Did I do something wrong?
xxledzeppelin2x3
10-31-2009, 09:41 PM
yeahh it should work.. i have heard it be done by many other people including my entire class!
bidalah
12-06-2009, 03:11 PM
I had no problem getting Alice up and running on Ubuntu but after almost a day of wrestling with it I can't get Alice to load by clicking on a desktop link. I am teaching this to a group of young children and don't want to waste time explaining to them what terminal window is.
Has anyone successfuly executed the run-alice script from a desktop shortcut? If so, please let me know how. I can't believe such a little thing is proving so difficult!
Gerhard Hagerer
03-05-2010, 11:26 AM
Hi,
just wanted to tell, that I got Alice running on Sun's Solaris Sparc 64-bit plattform.
I did it like homer.xing describes. I downloaded the jogl-libraries for Solaris from here (https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=11509&expandFolder=11509&folderID=11508) and replaced them as described from the people above. I also took the start-script from homer.xing. A further step was getting the following files: libGL.so, libGL.so.1, libGLU.so, libGLU.so.1. Some programms like maple or graphic-drivers do have it on board. Scan your hard-drive for this. These files or links to them have to be placed in jogl/lib/linux-i586. Well that's it.
Hope you have fun with it.