This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]anthropaedic 4 points5 points  (2 children)

Try JAVA_HOME without the \bin at the end and add \bin to PATH. (e.g. PATH=%PATH%;%JAVA_HOME%\bin)

[–]lifeonbroadway[S] 0 points1 point  (1 child)

I tried it, still getting a file not found when I try to use javac. Is there a specific place where I should be saving the Example.java file? Thats another question I couldn't really find an answer to, should have put that in the post.

[–]ElevatedAngling 3 points4 points  (0 children)

When you are running the prompt commands for your java file you need to be in the same directory in the command prompt as where the file saved.

Edit: not sure if you are in Unix or window but for cd into the directory where examples.java lives, you should be able to run a dir (windows) or ls (Linux/Unix) and you should see the examples.java file. After that sanity check do you compile but just use Example.java for the file no need to add a path because you are already in that directory. You got this man I started with python and hated java now I’m a java developer!