> I have worked on JNI.In that i usually use C methods
> in and create a dll and use those methods in java.But
> i want to write my application in C and call Java
> methods.Is there any way to do this.Tell me step by
> step so that i can understand well.Thanks a lot
See:
http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/invocation.html#wp9502
The Sun code sample uses JDK1_1InitArgs which is outdated.
I don't know why they kept showing this sample code in their documentation up to JDK 5.0 version.
The [url http://download.java.net/jdk6/docs/technotes/guides/jni/spec/invocation.html#wp9502]JDK 6.0 documentation[/url] is updated though.
Anyway here is an updated sample of code that starts a JVM:
[url http://www.rgagnon.com/javadetails/java-0354.html]Start JVM from C[/url]
Regards