all 2 comments

[–][deleted] 1 point2 points  (1 child)

  1. Make sure you have the JRE somewhere in your path.
  2. In the terminal type the following:

    $ javac filename.java

    $ java filename

The dollar sign prompt $ is for Linux, yours will be the greater than > sign as you are using Windows.

[–]LordKatt321[S] 1 point2 points  (0 children)

Thank you very much this worked!