'java console window not appearing

When starting a Java program e.g.

  Java -cp path/to/ main.class

my application starts, but I don't get a console in Win 8.1. I have set the Java console Switch to show console as Admin. But the console still doesn't show up.



Solution 1:[1]

The Java Console is available for applets running with Java Plug-in and applications running with Java Web Start.

https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/console_trace_log.html

If you are running your command from a command interpreter, it will become your console for input and output unless otherwise redirected. If you are using javaw you will have no console.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jla