Is there anyway to run a Java program through C/C++?

(i.e.) When I run the C Program, the program must start and it must inturn run a java program and display its output... Im not talking about using Native interfaces and all. Not code interoperability.

Just run the java class from c using system commands. And It will be on a UNIX terminal.

I need urgent help with this. Thank you!

Recommended Answers

All 2 Replies

I imagine there is a c library function that will allow you to execute an OS command line.
Have you asked on a c forum?

After searching the internet I found the system() function in C. But haven't tried out yet in UNIX. Will report back.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.