i want to make a program in c++ that acts as a wrapper and thats executable (.exe) so i click on it and it runs my java program. any ideas on how to do this?
How do you make a c++ program that runs a java program?
I am sure some people will suggest system(). The proper option is probably to look into JNI (Java Native Interface). It's not that hard to run java from within a c++ program via JNI but it takes some reading and learning.
Reply:Well, I know that you can make an executable jar file with GUIs. I use the BlueJ program to write and compile my programs, and there's an option to create an executable jar file, which I can then double click on to run the program. But I'm not sure how to make this work with programs that use the terminal window.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment