• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using native code

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello world,
I have this assignment to do. It is that, the user is allowed to enter a process name and when entered, if that perticular process is running, the program should give the attributes of the process. From the information I gathered so far, I understood that, it is not possible to do it with Java. I have to use some other languge such as C++. Could you please tell me how to combine these to languages, and say if the C++ codes results in an array of data, how to get them directly to an array in Java in the program.
Thank you in advance....................
 
Dmitry Melnik
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try reading this first http://java.sun.com/docs/books/tutorial/native1.1/TOC.html
I assume you know how to program in C++
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're perhaps going to want to get into JNI. So, I'm moving this to the Other Java APIs forum, where folks just love to talk about JNI.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic