Stuck trying to run java/javac

Hello,

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 HelloWorld.java /usr/bin ./java -version

Thanks in advance!

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

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

Sure:

/* This is a simple Java program.
FileName : "HelloWorld.java". */
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");
        }
}