|
Re: path, not class path [message #67238 is a reply to message #67199] |
Fri, 20 May 2005 21:48 |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"Al" <allelopath@hotmail.com> wrote in message
news:21b54c16be3a65a71ef06027b6d7b084$1@www.eclipse.org...
> 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.
What happens if you set the path (outside of Eclipse), before running
Eclipse?
|
|
|
|
Re: path, not class path [message #67257 is a reply to message #67247] |
Fri, 20 May 2005 23:23 |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"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.)
|
|
|
Re: path, not class path [message #67732 is a reply to message #67257] |
Mon, 23 May 2005 15: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.10804 seconds