The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to embeded programm within programm shankarao Shell Programming and Scripting 2 11-13-2006 06:29 PM
invoking a java prog Dine Linux 1 10-11-2006 11:14 PM
Solaris Cluster possibility p_walunjkar SUN Solaris 2 09-30-2006 05:57 AM
create thread C with JNI function with JAVA AUBERT HP-UX 0 08-06-2004 02:24 AM
possibility to call subprocesses from ksh ?? TheBlueLady UNIX for Advanced & Expert Users 3 12-11-2002 09:37 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-13-2005
Registered User
 

Join Date: Jun 2005
Location: Beijing
Posts: 13
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?
Reply With Quote
Forum Sponsor
  #2  
Old 06-13-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,683
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
Reply With Quote
  #3  
Old 06-14-2005
Registered User
 

Join Date: Jun 2005
Location: Beijing
Posts: 13
you are right, JNI is what i am looking for, thanks!!
Reply With Quote
  #4  
Old 06-19-2005
Registered User
 

Join Date: May 2005
Posts: 18
I think CORBA can do that too..
Reply With Quote
  #5  
Old 06-19-2005
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
Quote:
Originally Posted by SaTYR
I think CORBA can do that too..
Not in the way the original poster was asking about.
Reply With Quote
  #6  
Old 06-19-2005
Registered User
 

Join Date: May 2005
Posts: 18
Why? Doesn't CORBA make interfaces between different languages?
May be i'm wrong...
Reply With Quote
  #7  
Old 06-19-2005
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
Quote:
Originally Posted by SaTYR
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0