Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java API
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Other JSE/JEE APIs
A JNI Question
Zeev Blac
Greenhorn
Posts: 3
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm trying to load a
java
class from a native c++ application using JNI.
I created the JVM, and got a pointer to JNIEnv.
I set the CLASSPATH environment variable to c:\test
I put my Simple.class under "c:\test\Simple"
When I call to FindClass("Simple\SimpleDemo"), it returns NULL.
What's wrong??!
Thanks in advance
Zeev Blac
Greenhorn
Posts: 3
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
>>> I put my Simple.class under "c:\test\Simple"
Oops..
I actually put my SimpleDemo.class under "c:\test\Simple"
And it still doesn't work.!!!
Help
Zeev Blac
Greenhorn
Posts: 3
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Nevermind, it works.
I wrote "package simple" instead of "package Simple"
Whip out those weird instruments of science and probe away! I think it's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Strange JNI problem
New to JNI
integrating Java with #C, having issues
JNI - Creating DLL
How to interact with a C/C++ running process from Java?
More...