This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JNI Problems


AFAIK, JNI under Windows with GCJ is not supported
yet. If you look at java/lang/natRuntime.cc, the
support for loading libraries for Windows is turned
off. See the _load method within this class; you
should notice some compiler directives that
effectively turn it off for Windows.

Lately, I've been thinking about how hard it would be
to implement this... My initial (naive) thought is
that it wouldn't be that hard. The Windows API call
LoadLibrary should do it for us. But, I haven't really
thought about this in much detail, so my view might be
oversimplified.

:-) Frank

--- "Simha, Kailas" <kailas.simha@ubspw.com> wrote:
> I am trying some examples on JNI but an stuck with
> this problem. Running on
> Win NT 4.0 with Dev-C++. (Have Cygwin also).
> Can somebody help!!
> When I run my java class file, I get this exception.
> What am I doing wrong
> here?
> 
> Exception in thread "main"
> java.lang.UnsatisfiedLinkError: print
>         at MyWorld.print(Native Method)
>         at MyWorld.main(MyWorld.java:12)
> 
> Thanks in advance,
> Kailas


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]