Can Java execute a .java file outside of current JVM in separate java prog.
Can Java execute a .java file outside of current JVM in separate java program ??
Like we can compile a code from wihin a java file by using the following :
Tool javac = ToolProvider.getSystemJavaCompiler();
Similarly,can we execute i.e. run a java program from within a java file i.e. running d java command from within the java file ??If yes then please tell me how??