Debian updating java
This is the Java byte code that I was talking about.Now you can run the Java byte code ‘Hello World.class’ with the following command: NOTE: Don’t include the ‘.class’ extension when you run a Java byte code file.
There are two versions of Open JDK 8 on Debian 9 Stretch official repository.
Java byte code is not anything like C/C compiled binaries, which require recompilation when needed to run on different machines and operating systems. The JVM reads the Java byte code and converts it into machine specific codes and then runs it on that particular machine and operating system. One is called the Oracle JDK and the other one is Open JDK.
The Java byte code is the same no matter what operating system or machine you use to generate it. Open JDK is totally open source and it does not include any proprietary component of Oracle JDK.
Now you can compile the ‘Hello World.java’ Java source file with the following command: The ‘Hello World.java’ Java source file should be compiled.
You can run the ‘ls’ command now and you should be able to see a ‘Hello World.class’ file as shown in the screenshot below.
‘java Hello World.class’ is not how you should run a Java program. ” printed on the screen as shown in the screenshot below.