find java path ubuntu code example
Example 1: check java version linux
//1.6 and higher versions
java -version
Example 2: java file path linux
Scanner s = new Scanner(new File("/home/me/java/ex.txt"));
//1.6 and higher versions
java -version
Scanner s = new Scanner(new File("/home/me/java/ex.txt"));