Calling JavaMethods from C

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
[263 byte] By [santhosh143a] at [2007-10-3 3:38:12]
# 1

> 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

Niceguy1a at 2007-7-14 21:33:28 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

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

jfbrierea at 2007-7-14 21:33:28 > top of Java-index,Java HotSpot Virtual Machine,Specifications...