IntelliJ Java IDE
The moose likes IDEs, Version Control and other tools and the fly likes trouble with path to swt dll Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "trouble with path to swt dll" Watch "trouble with path to swt dll" New topic
Author

trouble with path to swt dll

Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 751

When does Eclipse recognize a change in the PATH system variable?
I created a HelloWorld class that uses SWT.
The manual says there are several ways to get my class to recognize the SWT DLL. One is to set it as an argument in the run configuration under VM Arguments. The argument I used is
-Djava.library.path="C:\Program Files\eclipse\plugins\org.eclipse.swt.win32_2.1.1\os\win32\x86"
and it works great.
I can also append the location of this library to my PATH variable:
C:\Program Files\eclipse\plugins\org.eclipse.swt.win32_2.1.1\os\win32\x86
or:
C:\PROGRA~1\eclipse\plugins\org.eclipse.swt.win32_2.1.1\os\win32\x86
but it could not find the library it needed. Then, I restarted Eclipse and it worked. But THEN, I tried breaking the PATH variable to see if I could break it again and now it won't break even if I restart Eclipse. So, what gives? Is there a way inside eclipse to make it recognize changes to an environment variable? Why won't it break now that the PATH variable is wrong?
Thanks!
 
 
subject: trouble with path to swt dll
 
Threads others viewed
UnsatisfiedLinkError with SWT
How do I run my SWT app outside Eclipse?
I can compile SWT out of eclipse but not in Eclipse :)
can't compile ANYWHERE...
Running SWT Applications Outside of Eclipse
IntelliJ Java IDE