• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI

 
Daniel Layher
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got a small C++ that creates a shortcut because to my understanding, java can't make one. Therefore i need to access the program, or class, or whatever to get it to work. To my understanding JNI can do this but i'm not sure how it all works and all that. Can anyone help or point me to somewhere that explains how i can use JNI because most of the online stuff isn't very helpful. Thanks
 
Jean-Francois Briere
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> because most of the online stuff isn't very helpful.

I strongly doubt it.
Here is a link obtained after a simple google search:

Start a JVM from C

Regards
 
Jayesh Lalwani
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun used to have a good JNI tutorial on the Java website. Unfortunately, they removed it some time back. I posted this thread sometime back, and EFH was nice enough to link me to a downloadable version of the JNI tutorial

If you want to learn JNI, I would encourage you to go through the JNI tutorial . GO to the above post, follow the link that EFH posted, and download the tutorial. It will tell you about the basics of creating a JNI dll.

However, the tutorial assumes a good working knowledge of Java and C++. So, if you don't know C++, you are figuratively "up the creek without a paddle"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!