What Is the Directory Path for Setting Java_Home on Linux?
Contents Where Is Java_Home Set Linux? 20 Answers Find /Usr/Lib/Jvm/Java-1. X. X-Openjdk. Vim /Etc/Profile. … Press ‘I’ to Get in Insert Mode. Add: Export...
Contents
Where is Java_home set Linux?
20 Answers
- find /usr/lib/jvm/java-1.x.x-openjdk.
- vim /etc/profile. …
- Press ‘i’ to get in insert mode.
- add: export JAVA_HOME=”path that you found” export PATH=$JAVA_HOME/bin:$PATH.
- logout and login again, reboot, or use source /etc/profile to apply changes immediately in your current shell.
14 апр. 2015 г.
Must Read
Where is my Java home directory?
Open a Command Prompt window (Win⊞ + R, type cmd, hit Enter). Enter the command echo %JAVA_HOME% . This should output the path to your Java installation folder. If it doesn’t, your JAVA_HOME variable was not set correctly.