Menu

#1 Linux Version

open
nobody
None
5
2010-10-17
2010-10-17
Klaue
No

You should add a linux version.
I was able to run it using the jface.jar from windows and solve.jar and using the swt.jar from http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.6.1-201009090800/swt-3.6.1-gtk-linux-x86.zip
In your ant file, just add something to copy that linux swt.jar together with the other two jars you build anyway and add a file called run.sh which contains:
java -cp jface.jar:swt.jar:solve.jar -jar solve.jar
and all is well. (might want to set the .sh as executable, but I diddn't use ant for a long time, so I don't remember if that's possible)

Discussion

  • Klaue

    Klaue - 2010-10-17

    Screenshot

     
  • Klaue

    Klaue - 2010-10-17

    OK, the second time I tried to save (the first time went well), the program exited with the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus
    at com.darronschall.solve.gui.EventManager.actionSaveFile(Unknown Source)
    at com.darronschall.solve.gui.SolVEMenu$5.widgetSelected(Unknown Source)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at com.darronschall.solve.gui.Launcher.<init>(Unknown Source)
    at com.darronschall.solve.gui.Launcher.main(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.IStatus
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    ... 9 more

    probably some swt dependency not met. I hate it when java programs do not stick to swing for exactly this reason ;)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.