How Do I Set Java_Home in 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 г.
How do I permanently set my Java path in Linux?
To Set PATH on Linux
- Change to your home directory. cd $HOME.
- Open the . bashrc file.
- Add the following line to the file. Replace the JDK directory with the name of your java installation directory. export PATH=/usr/java/<JDK Directory>/bin:$PATH.
- Save the file and exit. Use the source command to force Linux to reload the .