• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

UnsatisfiedLinkError with JNI in jdk1.2

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I run my JNI programs in JDK1.3, evrything is working fine.
But in JDK1.2 , when I run my java code (the same JNI programs
which calls the native method) ,I am getting UnsatisfiedLinkError.
The exact lines I am getting is this:-
cpp>java TestIDs
Exception in thread "main" java.lang.UnsatisfiedLinkError: testz
at TestIDs.<clinit>(TestIDs.java:11)

'testz' is the native method.
Please help.
Thanks,
Shyla.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you taken care to set the library path pointing to the directory where you have your .so or .dll library files
n

Originally posted by Achu Raj:
When I run my JNI programs in JDK1.3, evrything is working fine.
But in JDK1.2 , when I run my java code (the same JNI programs
which calls the native method) ,I am getting UnsatisfiedLinkError.
The exact lines I am getting is this:-
[b]cpp>java TestIDs
Exception in thread "main" java.lang.UnsatisfiedLinkError: testz
at TestIDs.<clinit>(TestIDs.java:11)

'testz' is the native method.
Please help.
Thanks,
Shyla.[/B]



------------------
"Don't walk in front of me...i'll not
follow !!
Don't walk behind me...i'll not lead !!
Just walk beside me ...i'll be a friend !!"
This is my signature !!
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Achu Raj:
When I run my JNI programs in JDK1.3, evrything is working fine.
But in JDK1.2 , when I run my java code (the same JNI programs
which calls the native method) ,I am getting UnsatisfiedLinkError.
The exact lines I am getting is this:-
cpp>java TestIDs
Exception in thread "main" java.lang.UnsatisfiedLinkError: testz
at TestIDs.<clinit>(TestIDs.java:11)

'testz' is the native method.
Please help.
Thanks,
Shyla.

 
kailas simha
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Achu Raj:
When I run my JNI programs in JDK1.3, evrything is working fine.
But in JDK1.2 , when I run my java code (the same JNI programs
which calls the native method) ,I am getting UnsatisfiedLinkError.
The exact lines I am getting is this:-
cpp>java TestIDs
Exception in thread "main" java.lang.UnsatisfiedLinkError: testz
at TestIDs.<clinit>(TestIDs.java:11)

'testz' is the native method.
Please help.
Thanks,
Shyla.


Hi,
Did you get this resolved yet?
I am having problems running both c++ and c code with jdk1.3.1_03!!
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
 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by kailas simha:


Hi,

Did you get this resolved yet?
I am having problems running both c++ and c code with jdk1.3.1_03!!

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



Hi Friends,

I am also having the same UnstisfiedLinkError Exception Problem.. Plese any one help me in this regard..
mail me.. my id is [email protected]

Thank you very much..

Regards,
Krishna
 
Did you just should on me? You should read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic