You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Geertjan Wielenga <ge...@googlemail.com.INVALID> on 2018/09/19 06:52:05 UTC

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

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 <po...@live.com.au> wrote:

> 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?
>