If I use:

ProcessBuilder builder = new ProcessBuilder("java", "-Xmx8192m", "-cp", 
"dist/MemoryLauncher.jar", "Project.Main");

the Netbeans console will detect both Main methods, but the default Windows 
console won't.  If I use:

ProcessBuilder builder = new ProcessBuilder("java", "-Xmx8192m", "-cp", 
"MemoryLauncher.jar", "Project.Main");

The the Windows console will detect both Main methods, but the Netbeans console 
won't.

Is there one command or one approach so that both console will detect the 
second invocation for Project.Main?

Reply via email to