• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNI call

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have some problems using JNI, here is the situation:
I have 2 JVM, when I type "java -version", it shows the following:
1): Classic VM (build JDK-1.2.2_008, green threads, nojit)
2): Solaris VM (build Solaris_JDK_1.2.2_09, native threads, sunwjit)
I complied the JNI and C using 1) and run the JNI 2). It seems the java and C has problems in passing parameters. Before calling the C function, it has no problem printing the parameter. However, when I tried to print that parameter in C function, it gives me "null" sometimes. Any ideas??
Thanks,
KK
 
reply
    Bookmark Topic Watch Topic
  • New Topic