TL;DR : 1) >javac ClassName.java 2) >java ClassName
Run:
- >javac ClassName.java
- >java ClassName
- Resources
- Troubleshooting JDK/JRE path install
- Find the Java path; it looks like this:
C:\Program Files\Java\jdkxxxx\bin\
- Start-menu search for “environment variable” to open the options dialog.
- Examine
PATH
. Remove old Java paths. - Add the new Java path to
PATH
. - Edit
JAVA_HOME
. - Close and re-open console/IDE.
- Compile Errors: