File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes Using native code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Using native code" Watch "Using native code" New topic

Using native code

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
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....................

SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Dmitry Melnik
Ranch Hand

Joined: Dec 18, 2003
Posts: 328
Try reading this first
I assume you know how to program in C++
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
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.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Using native code
It's not a secret anymore!