Check Java path set not Unix
To execute java on Linux first you will have to check if java path has been set or not. You could use below command to check if its in class path or not:
$ java : If its in class path you see below:
- To check javac is in classpath or not:
$ javac: If its in class path you will below details:
- For more details please visit this oracle tutorial link