I\'m trying to execute a Java program from the command line in Windows. Here is my code:
import java.io.File; import java.io.FileInputStream; import java.io.
Now (with JDK 9 onwards), you can just use java to get that executed. In order to execute "Hello.java" containing the main, one can use: java Hello.java
You do not need to compile using separately using javac anymore.