Re: Simple Java Default Package Question????

Jeff Kesselman <[email protected]>
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
Nikolaos Giannopoulos wrote:
>
> Does anyone know how to get around this?
Yes.

(1)  Write your java code correctly
(2)  Use Javah to generate the C stubs
(3) Call your library code from your C stubs

Your kind of misusing JNI. It was never intended to allow calling into
any method of an arbitrary DLL. The above is the proper pattern.

JK


> The only work around that
> comes to mind is writing a DLL wrapper that is referenced from package A
> that wraps this DLL; but yet another DLL and a C-compiler isn't the most
> appetizing.
>
> Any other brilliant or not so brilliant thoughts???  Preferably I can
> just tweak something in JNI or something.
>
> --Nikolaos
>
> ===================================
> This list is hosted by DevelopMentor®  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.