Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

swt missing #104

Open
jgranduel opened this issue Oct 22, 2018 · 0 comments
Open

swt missing #104

jgranduel opened this issue Oct 22, 2018 · 0 comments

Comments

@jgranduel
Copy link

Hi,

I've discovered Menthor editor very recently. When I tried to run it, I got a Java Exception saying swt-win.jar is missing.

java -jar .\menthor-1.1.9.jar
Reading from: swt-win.jar
Unable to add the swt jar to the class path: swt-win.jar
java.io.FileNotFoundException: path\to\menthor-1.19\menthor-1.1.8_lib\swt-win.jar (Le chemin d'accès spécifié est introuvable) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at java.io.FileOutputStream.<init>(FileOutputStream.java:162) at net.menthor.swt.Util.extract(Util.java:58) at net.menthor.swt.SWTConfigurer.addSwtToClasspath(SWTConfigurer.java:76) at net.menthor.swt.SWTConfigurer.loadSwt(SWTConfigurer.java:26) at net.menthor.swt.SWTConfigurer.execute(SWTConfigurer.java:16) at net.menthor.editor.v2.ui.MenthorEditor.start(MenthorEditor.java:31) at net.menthor.editor.v2.ui.MenthorEditor.main(MenthorEditor.java:53) java.lang.NullPointerException at sun.net.util.URLUtil.urlNoFragString(URLUtil.java:50) at sun.misc.URLClassPath.getLoader(URLClassPath.java:512) at sun.misc.URLClassPath.getNextLoader(URLClassPath.java:484) at sun.misc.URLClassPath.getResource(URLClassPath.java:238) at java.net.URLClassLoader$1.run(URLClassLoader.java:365) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at net.menthor.swt.SWTConfigurer.loadSwtJar(SWTConfigurer.java:110) at net.menthor.swt.SWTConfigurer.loadSwt(SWTConfigurer.java:36) at net.menthor.swt.SWTConfigurer.execute(SWTConfigurer.java:16) at net.menthor.editor.v2.ui.MenthorEditor.start(MenthorEditor.java:31) at net.menthor.editor.v2.ui.MenthorEditor.main(MenthorEditor.java:53)

As I had a Eclipse IDE on my desktop, I tried to find the missing "swt" jar. I found an obscure "org.eclipse.swt.win32.win32.x86_64_3.100.1.v4236b.jar" that I had to explicitly copy to a new folder
"menthor-1.1.8_lib" and this time, menthor editor run:

#77 PS5 C:\Java\Incubating\menthor\menthor-1.19> java -jar .\menthor-1.1.9.jar Adding to classpath: file:/C:/Java/Incubating/menthor/menthor-1.19/menthor-1.1.8_lib/swt-win.jar SWT loaded from org.eclipse.swt.widgets.Display in file:path/to/menthor-1.19/menthor-1.1.8_lib/swt-win.jar

Could make the necessary update for simplifying the process and remove the old link to 1.1.8_lib?
If there are license reasons for not including swt, could you precise where to get it as it's not so obvious I've found.
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant