Re: Calling java (.jar) from C++?
cada0310 wrote:
Hi there,
I have a need to call a java database library from C++ applications. Can
anyone point me in the right direction on how to accomplish this?
Thanks.
1. using Java Native Interface (JNI)
refer
http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/jniTOC.html
However, it will be complex and painful task.
2. if you use C++ in Dotnet (managed C++), you can try the
Javaimplementation in Dotnet - IKVM.
refer "
http://www.ikvm.net/"
If lucky, you can convert the java library to a Dotnet assembly and call
it as normal Dotent library.
--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk
jacky@compose_DOT_com_DOT_hk
.
Relevant Pages
- Re: Giving an application a window icon in a sensible way
... Java app. ... At the time I made the initial posting to this thread, a google ... applications (they involved requesting the icon from a URL, ... or accomplish things on your own. ... (comp.lang.java.programmer) - Re: silly unsigned/signed byte conversion question
... >> Java has no such type as an unsigned byte. ... i was misleadingly trying to refer to an octet value's ... > my original problem was reading 8-bit data from a character stream and ... (comp.lang.java.programmer) - Re: Instantiate a class with a variable as its name
... I want to create an instance of a class, but want to refer to the name ... of the instance, at creation time, via a variable. ... All of the Java documentation regarding anonymity refers to inner ... Is this possible in Java? ... (comp.lang.java.programmer) - Re: silly unsigned/signed byte conversion question
... > Java has no such type as an unsigned byte. ... i was misleadingly trying to refer to an octet value's ... "unsigned" representation as short, int or long. ... (comp.lang.java.programmer) - How to debug EXCEPTION_ACCESS_VIOLATION?
... appreciate any helpfule debugging tips! ... Please refer to release documentation for possible ... # Java VM: Java HotSpotClient VM ... # An error report file has been saved as hs_err_pid4308.log. ... (comp.lang.java.help) |
|