Where Is My Java on Ubuntu?
Contents Where Is Java Located in Ubuntu? Setting Java_Home Environment Variable in Ubuntu Open a Terminal. Open “Profile” File Using Following Command: Sudo...
Contents
Where is Java located in 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.
10 июн. 2018 г.
Must Read
How do I check if Java is installed on Ubuntu?
Open a Linux Terminal (command prompt). Step 2: Enter the command java -version. If Java is installed on your Ubuntu 16.04 LTS system, you will see a Java version installed in response.