Is there any possibility that invoking java function in c programm?

I think i am in trouble. I have to invoking a bunch of functions(such as encrypt, digital sign) from a java file(.jar), but I have no idea how to do that, Is there any possiblity?

If I understand correctly, jni is what you are looking for.

Java Native Interface(JNI), allows you to call native functions from java vice-versa.

Have a look at the sun site for jni related topics/articles

www.java.sun.com

Vino

you are right, JNI is what i am looking for, thanks!!

I think CORBA can do that too..

Not in the way the original poster was asking about.

Why? Doesn't CORBA make interfaces between different languages?
May be i'm wrong...

Not in the way the OP was asking, the orignal question was about a code interface, not an object interface. CORBA is used for handling interfaces between objects.