IT Community - Software Programming, Web Development and Technical Support

How Do I Call Java from C?

This is a discussion on How Do I Call Java from C? within the C and C++ Programming forums, part of the Software Development category; How Do I Call Java from C? I need to invoke java from C...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-30-2007, 07:54 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Question How Do I Call Java from C?

How Do I Call Java from C?

I need to invoke java from C
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-30-2007, 07:58 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Thumbs up Re: How Do I Call Java from C?

Since Java is not as of yet a true compiled language, the only way to call Java code from C in Java 1.0 is by using the system() call (or your OS's equivalent) to execute the java interpreter with appropriate command line arguments.
In Java 1.1 the Java Native Method Interface in combination with the Invocation API allows native applications to load and access the Java virtual machine
__________________
The OXYGEN
Delivers edgy, intelligent Technology to all...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between call by value and call by reference amansundar Java Programming 2 09-18-2007 01:34 AM
How do I call the native API from Java? oxygen Java Programming 2 08-06-2007 08:43 AM
How Do I Call C Code from Java? kingmaker Java Programming 2 08-06-2007 08:31 AM
Function call and System call vigneshgets Operating Systems 1 08-01-2007 06:18 AM
How can I call system in C? Sabari C and C++ Programming 1 07-17-2007 03:57 AM


All times are GMT -7. The time now is 09:19 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0