+ 1

How to compile a java program using another java program

25th Mar 2017, 5:48 PM
Ravi Ranjan
Ravi Ranjan - avatar
1 Respuesta
+ 2
Did you mean "call" a Java program inside some Java code? If that's the case, build the program to be called into a .JAR and call it via Runtime.getRuntime().exec() static method. Example: Runtime.getRuntime().exec("java -jar myjar.jar");
25th Mar 2017, 6:31 PM
reddylopes
reddylopes - avatar