How does the "Eclipse IDE" manipulate Windows environment "Path" variable? -
i have problems setting "run configuration" in eclipse. when use windows cmd compile , run java.class use .bat file looks this:
rem wipe standard windows path variable , use this: set path = c: \ program files \ .this path.;..and one..;…;… rem needed classpath's set classpath = "... \ path / *; ... rem path native .dll libs set lib_path = "c: \ ... \ bin" javac-cp% classpath% "... \ someexample.java" java-cp% classpath%-djava.library.path =% lib_path% someexample
and works should, both compile , run ok. when try same through eclipse, adjusting classpath in run configuration gui, compile ok (i test manualy in cmd), during execution compiled class, java.lang. "unsatisfiedlinkerror ... someimportantdll.dll: specified procedure not found, " same error while running in cmd if not set path enviroment variable manually in .bat file! should in eclipse run compiled class?
add correct -djava.library.path vm arguments field. don't rely on external environment--you should control application's environment won't have "gotchas" when roll out.
Comments
Post a Comment