I have a java class exe.class I would like to call this program using c.
I tried the following methods none of them seems to work if you know where the problem is please help.
When I run
from command prompt it works.
I tried the following methods none of them seems to work if you know where the problem is please help.
Code:
main(){[INDENT]System("java C:/Users/sthato/workspace/NumThe/bin/exe");[/INDENT][INDENT]execlp("java","C:/Users/sthato/workspace/NumThe/bin/exe");[/INDENT][INDENT]execlp("C:/Program Files/Java/jdk1.6.0_07/bin/java.exe","C:/Users/sthato/workspace/NumThe/bin/exe");[/INDENT]
Code:
java C:/Users/sthato/workspace/NumThe/bin/exe
Comment