JNI and eclipse [message #233243] |
Fri, 23 April 2004 02:55  |
Eclipse User |
|
|
|
Originally posted by: me.knoware.nl
Hi,
How to get NI working in eclipse. What plugins do you need.
Johan
|
|
|
|
|
|
|
|
|
|
|
Re: JNI and eclipse [message #235680 is a reply to message #234661] |
Wed, 28 April 2004 00:07  |
Eclipse User |
|
|
|
Originally posted by: jm.nospam.steranka.com
In article <c6jiov$pqq$1@eclipse.org>, pkorros@bigfoot.com says...
> Yes but i can't tell all my plugin's users to do that.
LOL. Well, I didn't say it was a good idea. :-)
If this is for a plug-in, then the plug-in install should
do what all good windows apps do (sigh)...
Copy the DLL to c:\winnt\system or c:\winnt\system32!
The other alternative is, of course, to update the "path"
and add the directory where your DLL is. This, however, is not
often done. :-(
Regards,
Patrick Steranka
>
> "Patrick Steranka" <jm@nospam.steranka.com> wrote in message
> news:MPG.1af64df59131a899989690@news.eclipse.org...
> > My gut feeling is that they need to be on your "PATH".
> > I'm assuming your using Windows (not UNIX) because you mention
> > win32/x86.
> > The way windows works is it searches your PATH to find DLLs.
> > Unix has an environment variable called LD_LIBRARY_PATH.
> > So try this:
> > (1) Start a DOS shell,
> > (2) Add your DLL directories to your PATH,
> > (3) Start up Eclipse from that DOS shell, and it will inherit
> > your PATH settings.
> > (4) When Eclipse launches another application your PATH will
> > be set (by default) and your Launched APP should be able
> > to find the DLLs that are needed.
> >
> > NOTE: Another alternative is to add the necessary directories
> > to your Windows environment variable PATH and then restart Eclipse.
> > This is likely easier but has the downside of those directories being
> > on your path for all applications (which might cause problems).
> >
> > HTH,
> > Patrick Steranka
> >
> >
> >
> > In article <c6h7jk$6ta$1@eclipse.org>, pkorros@bigfoot.com says...
> > > I have the following problem. My class uses System.loadLibrary to load a
> dll
> > > but that dll has depedencies to other dlls.
> > > Where should i put these other dlls?
> > > Putting them in os/win32/x86 dosn't solve my problem.
> > >
> > > "Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
> > > news:c6bgjf$9n6$1@eclipse.org...
> > > > Basically the way Eclipse does it is that the class calling the
> > > > System.loadLibrary() comes from a special classloader. And that
> > > > classloader overrides the findLibrary method. There is a classloader
> per
> > > > plugin, so each plugin knows only its own library paths (e.g. os/...
> > > > under the plugin directory) and searches there for the library.
> > > >
> > > > --
> > > > Thanks, Rich Kulp
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04582 seconds