CentOSjava environment variable configuration

Source: Internet
Author: User
#/Etc/profile is globally valid and does not differentiate users # cd/root # bash_profile for the current user environment variable configuration vi. bash_profile // enter the following content # JAVA1.6environmentconfigurationexportJAVA _ HOME = & quot;/usr/jdk1.6.0 _ 45 & quot;

#/Etc/profile is globally valid and does not differentiate users

# Cd/root

# Bash_profile configuration for current user environment variables

Vi. bash_profile

// Enter the following content

# Environment configuration in JAVA 1.6

Export JAVA_HOME = "/usr/jdk1.6.0 _ 45"

PATH = $ JAVA_HOME/bin: $ PATH

Export PATH

CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar

Export CLASSPATH

 

// SAP version

 

// Enter the following content

# Environment configuration in JAVA 1.6

Export JAVA_HOME = "/usr/jdk1.6.0 _ 45"

PATH = $ JAVA_HOME/bin: $ PATH

Export PATH

CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/lib/sapjco3.jar

Export CLASSPATH

LD_LIBRARY_PATH = $ JAVA_HOME/jre/lib/amd64/server

Export LD_LIBRARY_PATH

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.