Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    this works for java but not for javac: cannot find or load main class com.sun.tools.javac.Main Commented Feb 3, 2016 at 17:01
  • 9
    Why Oracle did such a poor way to point to java is beyond me I guess the reason was that when you have relatively constant env var (pointing always to the one place - f.e. javapath folder), you can change paths dynamically, on on the fly (changing a link does not require shell restart). While if you change env var (f.e. PATH) you'll have to restart shell to reload and apply new ENVVARs values. Sure I'm not an Oracle advocate and of course it's just my suggestion. Commented Jul 20, 2016 at 21:06
  • 2
    I received "Cannot create a file when that file already exists." Commented Dec 12, 2019 at 8:04