Contents
How do I find my JDK path Ubuntu?
Setting JAVA_HOME environment variable in Ubuntu
- Open a terminal.
- Open “profile” file using following command: sudo gedit /etc/profile.
- Find the java path in /usr/lib/jvm. If it’s JDK 7 the java path would be something similar to /usr/lib/jvm/java-7-oracle.
- Insert the following lines at the end of the “profile” file.
Where is openjdk path in Linux?
Red Hat Enterprise Linux installs OpenJDK 1.6 into either /usr/lib/jvm/java-1.6. 0-openjdk-1.6. 0.0/ or /usr/lib/jvm/java-1.6.