Configure javaclasspath in linux

Source: Internet
Author: User
Configure javaclasspath in linux-general Linux technology-Linux programming and kernel information. For more information, see the following. In ReaHat9 and FC4, modify the. bashrc file in the user directory and add it at the bottom.

For example:
JAVA_HOME =/usr/java/jdk1.5.0 _ 04
Export JAVA_HOME
PATH = $ JAVA_HOME/bin: $ PATH
Export PATH
CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export CLASSPATH

Add at the bottom of/etc/profile
JAVA_HOME =/usr/java/jdk1.5.0 _ 04
PATH = $ JAVA_HOME/bin: $ PATH
CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export JAVA_HOME, PATH, CLASSPATH

After setting, log on again.

In debian, apart from the preceding two steps.

Add the following content at the beginning of/etc/TPD/Xsession:

Source/etc/profile

After setting, log on again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.