PDA

View Full Version : Alice 2.4 on Fedora shortcut and $PATH not launching


RobbieTheK
06-15-2017, 03:58 PM
I tried to set env variables in a new file, /etc/profile.d/alice.sh
export ALICE24=/opt/Alice24/Required
export PATH=$PATH:$ALICE24

So when I run:
run-alice
64-Bit
Error: Could not find or load main class edu.cmu.cs.stage3.alice.authoringtool.JAlice


Then I see errors like this:
Registered succesfully
*sys-package-mgr*: processing modified jar, '/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-1.b12.fc25.x86_64/jre/lib/resources.jar'
*sys-package-mgr*: can't write cache file for '/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-1.b12.fc25.x86_64/jre/lib/resources.jar'
*sys-package-mgr*: processing modified jar, '/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-1.b12.fc25.x86_64/jre/lib/rt.jar'


OOPS!! Looks like we have a slight layout problem. Not a big deal, press OK to continue.

As well as below:
Alice version: 2.4.3
os.name: Linux
os.version: 4.10.12-200.fc25.x86_64
os.arch: amd64
java.vm.name: OpenJDK 64-Bit Server VM
java.vm.version: 25.131-b12
user.dir: /opt/Alice24/Required

Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException
at javax.swing.LayoutComparator.compare(LayoutCompara tor.java:75)
at javax.swing.LayoutComparator.compare(LayoutCompara tor.java:42)
at java.util.TimSort.countRunAndMakeAscending(TimSort .java:360)
at java.util.TimSort.sort(TimSort.java:234)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1454)
at java.util.Collections.sort(Collections.java:175)
at javax.swing.SortingFocusTraversalPolicy.enumerateA ndSortCycle(SortingFocusTraversalPolicy.java:172)
at javax.swing.SortingFocusTraversalPolicy.getFocusTr aversalCycle(SortingFocusTraversalPolicy.java:143)
at javax.swing.SortingFocusTraversalPolicy.getFirstCo mponent(SortingFocusTraversalPolicy.java:500)
at javax.swing.LayoutFocusTraversalPolicy.getFirstCom ponent(LayoutFocusTraversalPolicy.java:166)
at javax.swing.SortingFocusTraversalPolicy.getDefault Component(SortingFocusTraversalPolicy.java:593)
at java.awt.FocusTraversalPolicy.getInitialComponent( FocusTraversalPolicy.java:169)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent (DefaultKeyboardFocusManager.java:420)
at java.awt.Component.dispatchEventImpl(Component.jav a:4760)
at java.awt.Container.dispatchEventImpl(Container.jav a:2294)
at java.awt.Window.dispatchEventImpl(Window.java:2746 )
at java.awt.Component.dispatchEvent(Component.java:47 11)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 80)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 728)
at java.awt.SequencedEvent.dispatch(SequencedEvent.ja va:128)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 80)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 728)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:82)
OOPS!! Looks like we have a slight layout problem. Not a big deal, press OK to continue.

I checked this thread (http://www.linuxquestions.org/questions/linux-software-2/alice-animation-program-and-ubuntu-800213/)but nothing there helped. Is this a 32-bit issue of Alice 2.4 running on 64-bit and not having the correct Java installed (https://www.if-not-true-then-false.com/2014/install-oracle-java-8-on-fedora-centos-rhel/)issue?