-
- Export path user LOGNAME mail hostname histsize inputrc
- Java_home =/Habitat/loocao/software/Java/jdk1.6.0 _ 13
- Jre_home = $ Java home/JRE
- Classpath =.: $ Java home/lib: $ jre_home/lib: $ classpath
- Path = $ java_home/bin: $ jre_home/bin: $ path
- Export path user LOGNAME mail hostname histsize inputrc Java home classpath jre_home
Configure the Java home variable in Linux. If you search for the variable on the Internet, it is estimated that most of the correct answers are:
Export Java home = Your/Java/path
This will have a difficulty. That is, the variable set in this method is only valid for the current user's current conversation. If you open another itll to run:
Echo $ Java home
The displayed result is still null value. We recommend that you do not apply this option when you re-configure the Java home variable for Linux, in addition, you only need to follow the tips to configure the lifelong application once:
Open the/etc/profile document with the root permission and find the line similar to the following:
Insert the following content on it:
Edit the Export Statement and add the Java home statement as follows:
After the configuration is complete, run the Java-version command to test it.
Note: You need to restart your computer before it takes effect.
Variables configured with this tip are valid for all local users, and do not need to be set repeatedly for different users.