I can't seem to not 'run natively' because then the Random class can't be found. Is there a specific order in which the libraries have to be on the build path in Eclipse, or am I forgetting something obvious?
The exact exception I get (as soon as I press Go from the simulator) is :
Code: Select all
ojvm.operations.LinkE: not found: Random.class
at ojvm.operations.DirectoryClassLoading.findClass(DirectoryClassLoading.java:46)
at ojvm.machine.ControlUnit.findClass(ControlUnit.java:266)
at org.hacker.engine.war.HackVMWarSpinalCord.initClass(HackVMWarSpinalCord.java:63)
at org.hacker.engine.war.HackVMWarSpinalCord.<init>(HackVMWarSpinalCord.java:55)
at org.hacker.engine.war.HackVMWarSpinalCordFactory.createSpinalCord(HackVMWarSpinalCordFactory.java:42)
at org.hacker.engine.war.Faction.addUnit(Faction.java:46)
at org.hacker.engine.war.WarModel.genFactions(WarModel.java:60)
at org.hacker.engine.war.WarModel.<init>(WarModel.java:50)
at org.hacker.engine.war.WarChooser.runIt(WarChooser.java:126)
at org.hacker.engine.Chooser$4.actionPerformed(Chooser.java:160)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:5517)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5282)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3984)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)