wood burning stoves 2.0*
The moose likes Java in General and the fly likes how to invoke jvm fro c++ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to invoke jvm fro c++" Watch "how to invoke jvm fro c++" New topic
Author

how to invoke jvm fro c++

paulvack cork
Greenhorn

Joined: Dec 23, 2005
Posts: 2
Freinds

Can we invoke jvm from c++ programs.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41035
    
  43
Welcome to JavaRanch.

I don't know about C++, but here are examples how to do it in C.


Ping & DNS - my free Android networking tools app
Aviroop Ghosh
Greenhorn

Joined: May 17, 2005
Posts: 4
See if this is any help for you. Its a pretty involved article but frankly did not have the time to try it out completely
Accessing Java from C++

Thanks
Aviroop
u johansson
Ranch Hand

Joined: Dec 27, 2005
Posts: 47
Yes you can. You can invoke Java.
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Originally posted by paulvack cork:
Can we invoke jvm from c++ programs.


Yes, I do it. You want the Invocation API.

My application is in C. However, throughout the rest of JNI, the norm seems to be that C++ is similar, except that you omit the first parameter to any C function call, and instead use that parameter as the C++ object on which the same-named method is invoked.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
 
wood burning stoves
 
subject: how to invoke jvm fro c++
 
Similar Threads
Permanently setting a System property
garbagte Collection
Multiple JVMs?
Finalize method
Invoking JVM using C++