GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Dec-2008, 14:52
kirtesh4u kirtesh4u is offline
New Member
 
Join Date: Dec 2008
Posts: 2
kirtesh4u is on a distinguished road

How to call JAVA program from C/C++


I have written one JAVA program I want to call from C or C++. Can any one help me on this? Please if possible provide code to achieve the required.
  #2  
Old 05-Dec-2008, 15:43
ocicat ocicat is offline
Regular Member
 
Join Date: May 2008
Posts: 580
ocicat is a jewel in the roughocicat is a jewel in the rough

Re: how to call java pgm from c/c++


Because Java applications are executed by Java's interpreter, you will need to call java with whatever arguments the application requires through system()
  #3  
Old 05-Dec-2008, 19:10
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,140
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: how to call java pgm from c/c++


You will have to use JNI, and it is not a trivial task.

Google these terms to find those resources: call java from c++
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you call a constructor within a destructor, or vise vesa? warrener C++ Forum 0 10-Jun-2008 21:24
Two bugs in my program that just won't go away. randomperson133 Assembly Language 1 23-Mar-2008 08:04
Will pay through Paypal if somebody helps me. paritoshcool Assembly Language 0 27-Nov-2007 23:27
Fortran problem... Justin Fox Miscellaneous Programming Forum 6 24-Oct-2006 16:30
Scalability in Java and C++ agx Miscellaneous Programming Forum 7 04-Feb-2006 16:35

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:07.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.