VM arguments in Eclipse: -Djava.library.path
843829May 16 2006 — edited Nov 16 2006Hi,
new to the forum so be kind. I am debugging someone elses code. It looks like they were using alot of Eclipse libraries so I just downloaded Eclipse and I am currently stumbling around the Eclipse environment like a frat boy in New Orleans during Marde Gras. I imported all of the relevant pieces of the project but when I try to run it I get the following:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3138 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)
at WlyPackage.PVShader.<init>(PVShader.java:217)
at WlyPackage.PVShader.main(PVShader.java:2865)
I ran a search on the Exception and found some reference to VM arguments , in particular they recommended using "-Djava.library.path=...path". Can someone explain to me the purpose of VM arguments and why this might be the solution? It just seems odd to me that I would need to do this if I have just imported (into my project in Eclipse) all of the relevant libraries.