• 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
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Java Native Interface : help needed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've just visited Java Ranch and found the site quite interesting. It provides different ways of learning. I've used the search engine provided but still unable to find the solution to my problem.
I'm conducting a research on how to use Java Native Interface to call C Programs. I'm using Win98 and installed jdk 1.3 and set the classpath as follows:
SET PATH=%PATH%;C:\IMNNQ_95;C:\jdk1.3\bin
SET CLASSPATH=C:\jdk1.3\lib\;C:\jdk1.3\;

It works fine with javac to create a .class file but it fails when I use javah -jni. The error was "Error: Class MyNative.class could not be found." I've gone through dozens of web reference on the net but still can't find any solution. Can you help? Thanks in Advance and have a nice day.
Cheers,

Brandon
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic