Build Java Runtime Environment notes under Xubuntu11.10 (JDK1.7 + MySQL5 + Tomcat6.0.35 + Eclipse3.7)

Source: Internet
Author: User
After having learned how to build a Java development environment for XUbuntu on Linux, I have been familiar with Java on Windows, I want to learn about the cross-platform features of Java. I was not very familiar with Linux when setting up the environment. I also referred to some online materials. The process was a bit tangled, but it was finally set up successfully. Ftp connection notes http://www.linuxidc.com/Linux/2012 under SublimeText2

After having learned how to build a Java development environment for XUbuntu on Linux, I have been familiar with Java on Windows, I want to learn about the cross-platform features of Java. I was not very familiar with Linux when setting up the environment. I also referred to some online materials. The process was a bit tangled, but it was finally set up successfully.

Related reading:

Sublime Text 2 for ftp connection note http://www.linuxidc.com/Linux/2012-04/58421.htm
Solve the problem that Sublime Text 2 cannot input Chinese in Xubuntu 11.10 http://www.linuxidc.com/Linux/2012-04/58420.htm
Sublime Text http://www.linuxidc.com/Linux/2012-04/58419.htm under Xubuntu 11.10

The process is as follows:

1, the development of java programmers know to have jdk first, this is the core, So I first go to the official website of the growth he on jdk1.7, the URL is as follows: Growth jdk-7u3-linux-i586.tar.gz. You can select the desired version to download. When downloading, be sure to click agree (accept)

This is.

After the download is complete, your "/home/user/download" folder is stored by default. My files are/home/lufeng, then, move the downloaded file to the/usr directory and decompress it. Run the following command on the terminal: (Note that you may not have the read/write permission, so run the command as root. First, enter the root password by su .)

1), first cp/home/lufeng/download/jdk-7u3-linux-i586.tar.gz/usr/lib/java. 2 seconds, then switch to the jdk-7u3-linux-i586.tar.gz directory/usr/lib/java directory to execute tar-zxvf jdk-7u3-linux-i586.tar.gz to decompress, so on the line, although it is installed, but the same as the windows environment, you also need to configure environment variables. You need to create a java. sh file under/etc/profile. d. The procedure is as follows:

1), cd into/etc/profile. d; 2), then execute vi java. sh and write down the following content:

JAVA_HOME =/usr/java/jdk1.6.0 _ 12 export

CLASSPATH =.: $ JAVA_HOME/lib: $ JAVA_HOME/jre/libexport

PATH = $ JAVA_HOME/bin: $ JAVA_HOME/jre/bin: $ PATH

Then the environment changes and the configuration will take effect after restart. If you use java-version, the version information is displayed.

2. install tomcat. Download the tomcat file from the apache-tomcat official website at http://tomcat.apache.org/download-60.cgi. select tar.gz (pgp, md5), and copy the file cp to the/usr/lib/tomcat folder, just like jdk, decompress the package in the tar-zxvf apache-tomcat-6.0.35.tar. Decompress the package and you can use the package.

To open tomcat, switch cp to the tomcat/bin/directory, cd/usr/lib/apache-tomcat-6.0.35/bin, and run sudo./startup. sh to display the following:

Using CATALINA_BASE:/usr/local/apache-tomcat-5.5.16 Using CATALINA_HOME:/usr/local/apache-tomcat-5.5.16 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.16/temp Using JRE_HOME:/usr/local/jdk1.6.0 _ 01/jre is enabled normally;

If tomcat is disabled, switch to the bin directory and execute sudo./shutdown. sh, and then close it.

If not, use the root identity for execution.

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.