How Do I Find My Jdk Path Ubuntu?
Contents Where Is My Jdk Path Ubuntu? Setting Java_Home Environment Variable in Ubuntu Open a Terminal. Open “Profile” File Using Following Command: Sudo Gedit...
Contents
Where is 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.
Must Read
How do I find my jdk path?
Set JAVA_HOME:
- Right click My Computer and select Properties.
- On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:Program FilesJavajdk1. 6.0_02.