You can’t run javac
since the system only has a JRE, not a Java SE (JDK). This means, you can run Java programs but not compile new ones (so far).
You need to install a separate Java to be able to compile. You can have multiple JVMs. I have Java 6, Java 7, and Java 8 installed. In Eclipse I choose which one to use separate per project.
solved Java 8 not visible [closed]