Build a Java Development Environment Using the SUSELinux Operating System

Source: Internet
Author: User
Article Title: Build a Java Development Environment Using the SUSELinux operating system. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source and other basic categories 1. Download JDK. This does not need to be said (I downloaded 1.6.0 _ 03)

2. Change the permission of the Installation File. In the terminal, use the cd command to transfer the current directory to the directory where the jdk-6u3-linux-i586-rpm.bin is located, use the ls-l command to view the file permissions, if it is executable x (eXecute) does not need to be changed, otherwise, run the command chmod 755 jdk-6u3-linux-i586-rpm.bin to make the self-decompressed package file executable.

3. install. Enter at the terminal. /Jdk-6u3-linux-i586-rpm.bin, step by step according to the prompts to execute.

4. Change the environment variables. The installed version is/usr/java/jdk1.6.0 _ 03 by default. we add it to the environment variable. Run the cd command to transfer to the etc directory, enter gedit profile, and set profile to the last three lines.

#

# End of/etc/profile

#

Add the following text:

Export JAVA_HOME =/usr/java/jdk1.6.0 _ 03

Export CLASSPATH =.: $ JAVA_HOME/jre/lib: $ JAVA_HOME/lib/tools. jar

Export JRE_HOME = $ JAVA_HOME/jre

5. restart the system and enter java-version on the terminal to display the following content:

Java version "1.6.0 _ 03"

Java (TM) SE Runtime Environment (build 1.6.0 _ 03-b05)

Java HotSpot (TM) Client VM (build 1.6.0 _ 03-b05, mixed mode, sharing)

The environment variable is successfully set.
Related Article

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.