path, not class path [message #67199] |
Fri, 20 May 2005 16:01  |
Eclipse User |
|
|
|
When one reads instructions to set the path (not the classpath) for
setting up a project, what does one do in Eclipse?
Instructions I am following say that, for Windows:
"Suppose you install the HDF object package at c:\apps\hdfobj.
setenv PATH=%PATH%;c:\apps\hdfobj\lib\win"
I've added external jars, thus setting the classpath.
I've tried adding path to the "Run" dialog, but this doesn't help
I still get an unsatisfied link error when running.
|
|
|
|
|
|
Re: path, not class path [message #67732 is a reply to message #67257] |
Mon, 23 May 2005 11:06   |
Eclipse User |
|
|
|
Originally posted by: eclipse.rizzoweb.com
Walter Harley wrote:
> "Al" <allelopath@hotmail.com> wrote in message
> news:364305696ed9584d0e7a26e1d20e43c9$1@www.eclipse.org...
>
>>I haven't tried that because I thought it would be irrelevant to open a
>>command line window and set the path because the path set would apply only
>>within the command line window.
>>Is this not correct?
>
>
> If you then opened Eclipse from within that command line window (e.g., by
> typing "eclipse" and hitting return), it would see that path.
>
> But a better way to do it would be to set the path in the global
> environment, by right-clicking "My Computer", and selecting Properties ->
> Advanced -> Environment Variables. Then no matter how you launch Eclipse it
> will see that path.
>
> (There's a separate question of why the heck HDF wants to look on the path
> for something. But it seems to, and there's probably not much you can do
> about it.)
It must be using some native code via JNI, and thus needs to find it's
DLL. Another option, I think, is to copy the required DLL(s) into the
working directory that you are launching your application from. I'm
pretty sure that windoze includes the current directory on the PATH by
default.
You might also try adding a PATH entry to the Environment tab for the
launch, if you haven't already.
HTH,
Eric
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07787 seconds