Stuck trying to run java/javac


I’ve been trying to play with java but it just get stuck, no error msg just stuck, no prompt back. CPU goes >95% indefinitely. Simple hello world and even a -version and gets stuck. I have tried with both java-basic and java-runtime bundles alternatively, with same result.

Any idea on what could be wrong?

javac /usr/bin ./java -version

Thanks in advance!

(fwiw: Using an updated (31800) CLR HyperV VM on Win10)

Can you post the contents of Then we can try and reproduce.


/* This is a simple Java program.
FileName : "". */
class HelloWorld
        // Your program begins with a call to main().
        // Prints "Hello, World" to the terminal window.
        public static void main(String args[])
                System.out.println("Hello, World");