PDA

View Full Version : Works great in Ubuntu 7.04


kmax
05-18-2007, 03:21 PM
I just wanted to post that I have gotten Alice working under Ubuntu 7.04 (32 bit) without any significant problems. There were a couple of things to watch out for, so I thought I would post those for users to be aware of:

-- By default Ubuntu 7.04 is using the Blackdown JVM. In a default 7.04 installation I found that this actually mostly runs Alice without problems. I say mostly because I did find that the tutorials will not work as the blue overlay becomes opaque and you cannot see anything under it, which basically makes the tutorials unusable. All other functions I tested worked however, even when running under Beryl.

-- I installed the Sun Java (tried both 1.5 and 1.6) from the Ubuntu repositories. In order to get Ubuntu to use one of these you have to run the following command:
update-java-alternatives -s [java-1.5.0-sun|java-6-sun]
**note, pick the appropriate of the two java's that you installed and only use that as the option.
Once you run that you can start Alice in the same manner and it will use the new jvm and these work completely as far as I can tell, including the tutorials.

-- One side note to using the Sun Java, I did find that it will not run properly if you are currently using Beryl/Compiz. This could possibly by environment/system/video card related only so your mileage may vary, but on my system running Alice with Sun Java and Beryl on resulted in only the preview world window showing and nothing else. Switching to metacity and restarting Alice allows it to run without problems.

Hope this helps someone else out there and thanks to all of those that put Alice together, it really is a great teaching tool and my daughter is extremely excited to start learning!

jdeisenberg
09-12-2007, 06:35 PM
Using this version of Java:

instructor@linux46:~/Alice/Required$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

I get this:

instructor@linux46:~/Alice/Required$ ./run-alice
attempting to register mp3 capability...
Registered succesfully
java.lang.IndexOutOfBoundsException: Invalid index
at javax.swing.DefaultRowSorter.convertRowIndexToMode l(DefaultRowSorter.java:497)
at sun.swing.FilePane$SortableListModel.getElementAt( FilePane.java:525)
at javax.swing.plaf.basic.BasicListUI.updateLayoutSta te(BasicListUI.java:1337)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayo utState(BasicListUI.java:1288)
at javax.swing.plaf.basic.BasicListUI.getCellBounds(B asicListUI.java:929)
at javax.swing.JList.getCellBounds(JList.java:1600)
at javax.swing.JList.ensureIndexIsVisible(JList.java: 1116)
at sun.swing.FilePane.ensureIndexIsVisible(FilePane.j ava:1514)
at sun.swing.FilePane.doDirectoryChanged(FilePane.jav a:1440)
at sun.swing.FilePane.propertyChange(FilePane.java:14 87)
at java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.java:339)
at java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.java:276)
at java.awt.Component.firePropertyChange(Component.ja va:7865)
at javax.swing.JFileChooser.setCurrentDirectory(JFile Chooser.java:568)
at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.worldsDirectoryChanged(AuthoringTool.java:478)
at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.dialogInit(AuthoringTool.java:631)
at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.<init>(AuthoringTool.java:413)
at edu.cmu.cs.stage3.alice.authoringtool.JAlice.main( JAlice.java:131)

lanceA
09-12-2007, 08:01 PM
Great information!! Thanks for posting it.

I have to use Java 1.6.0_02 as a result of 'on-line' textbook interactvie material, etc. This has also been causing me grief as Apple's MAC is only up to Java 1.5 (Java 5.0)