***UNCHECKED*** Netbeans and OS console capturing issue.

2018-09-18 Thread A Z
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",

***UNCHECKED*** Re: Netbeans and default console issue.

2018-09-18 Thread Geertjan Wielenga
I don't know, but the reason why is clear -- on the command line, you're running your Launcher from a JAR file, while in NetBeans what you're running is the compiled Launcher.class in the 'build' folder. Gj On Wed, Sep 19, 2018 at 8:47 AM, A Z wrote: > If I use: > > *ProcessBuilder builder = ne

Netbeans and default console issue.

2018-09-18 Thread A Z
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", "

Re: Netbeans 9 Console Capturing Problem.

2018-09-18 Thread Geertjan Wielenga
Please don't send code around that is "designed to intentionally fill up memory". To respond to your problem, a first question to ask is whether "MemoryLauncher.jar" exists anywhere? I doubt it. You'll need to build the project (right-click the project and choose Build), which means that that JAR

Netbeans 9 Console Capturing Problem.

2018-09-18 Thread A Z
//I am encountering my Netbeans 9 console capture problem via the following: package Project; import java.util.LinkedList; import static java.lang.System.out; public class Main { public static void main(String ... args) { out.println(); out.println("Primary Main program has begun."); o

Re: Obtains Netbeans 9 console to both processes.

2018-09-18 Thread Geertjan Wielenga
Well, do you have a class named Project.Main? Gj On Wed, Sep 19, 2018 at 4:22 AM, A Z wrote: > I am running Windows 10 64 bit and 64 bit Netbeans 9. > > I order to have the Netbeans console listen to both processes, > I was suggested from this emailing list: > >

Obtains Netbeans 9 console to both processes.

2018-09-18 Thread A Z
I am running Windows 10 64 bit and 64 bit Netbeans 9. I order to have the Netbeans console listen to both processes, I was suggested from this emailing list: What you need to do is have the output of the spawned

Re: Netbeans Console issue with separate Java programs.

2018-09-18 Thread Paul Franz
What you need to do is have the output of the spawned process redirected to the STDOUT and STDERR of the current process. The following should work: ProcessBuilder pb = ProcessBuilder.command (“java”, “-Xmx8192m”, “-cp”, “MemoryLauncher.jar”, "Project.Main”); pb.inheritIO();