Petterson Mikael schrieb:
> Is there another way of launching a java program, from within another
> java program, than using:
> Runtime r = Runtime.getRuntime();
> Process p = r.exec("c:/javac/bin/java -classpath c:\\Michael Sample");
If it's on the classpath, just call (maybe in a separate Thread?)
If it is not, use your own class loader to load the class from "C:\Michael" and
then call main(), possibly using reflection.
Note that when both programs are running in the same JVM they may of course
interfere by accessing static methods and fields etc.
(Don't know about Eclipse, though, but that doesn't seem to be relevant here.)