GIDForums  

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

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 14-Oct-2004, 09:05
Magicman Magicman is offline
New Member
 
Join Date: Oct 2004
Posts: 1
Magicman is on a distinguished road

calling a java program from C


hii,

i have a problem, I want to access some java programs from my c code, is it possibel? if so, how and waht are the measurs..

could u please help me...

Thanks in Advance,

cheers
  #2  
Old 15-Oct-2004, 03:20
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 961
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
Well, I must say NO. Well, kind of no
I mean, there are certain "compilers" (you'll have to do a search on them as I don't know their names by hearth) that can generate .exe or even .dll compiled versions of your Java program.
What this programs actually do is include a small portion of the VM in the resulting .exe or whatever file.
I guess (and is simply a supposition - I have never tried that!!!) you could then try to run this program from C. Maybe

P.S: Bare in mind I am only refering to Windows platforms here. You should ask for a different opinion for *nix.
Also, I am puzzled with why you would want to do this. You have a strange mind

Kind regards.
Luci
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
  #3  
Old 18-Oct-2004, 15:24
mikhail mikhail is offline
Junior Member
 
Join Date: Mar 2004
Location: Dublin, Ireland
Posts: 73
mikhail is on a distinguished road
Quote:
Originally Posted by Magicman
i have a problem, I want to access some java programs from my c code, is it possibel?
Java's not that different from C: have you tried rewriting the code? Unfortunately, the other way around is easy, but Luci's right (about the coding at least, if not the strangeness of mind!)
  #4  
Old 20-Oct-2004, 08:43
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 961
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
Quote:
Originally Posted by mikhail
... but Luci's right (about the coding at least, if not the strangeness of mind!)

Oh, actually I meant that as a compliment!! I mean, I never thought of that, and I appreciate originality

Kind regards,
Luci
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
 
 

Recent GIDBlogStupid Management Policies by crystalattice

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
[TUTORIAL] Calling an external program in C (Linux) dsmith C Programming Language 4 22-Apr-2005 14:30
Executing a program inside my program killer9012 C++ Forum 13 02-Sep-2004 23:21
Need help with a C program (Long) McFury C Programming Language 3 29-Apr-2004 21:06
Modify a C program ayoub C Programming Language 3 15-Mar-2004 12:34

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

All times are GMT -6. The time now is 05:34.


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