Installing the JDK under Ubuntu 10.10 Configuring Eclipse and Tomcat

Source: Internet
Author: User
Tags gtk

1. Installing the JDK

1.1. Download the relevant JDK to the website

The download here is Jdk-6u23-linux-i586.bin.

:http://www.oracle.com/technetwork/java/javase/downloads/index.html

1.2. Create a "Java folder" in "Administrator Personal Folders"

Location---Home folder->administrator;

Place the downloaded Jdk-6u23-linux-i586.bin in this Java folder.

The path can be changed according to your actual situation, here the Java folder under administrator as an example

1.3. Open "Terminal"

Applications, accessories, terminals

input :

 
   
  
  1. sudo sh jdk-6u23-linux-i586.bin

(You may encounter a user password to enter)

2. Set Java_home Environment System variables

2.1, here ctrl+h can see hidden files, more useful shortcut keys.

Input:

 
   
  
  1. sudo gedit/etc/environment

In the file, add:

 
   
  
  1. Export java_home=/home/administrator/java/jdk1.6.0_23
  2. Export jre_home=/HOME/ADMINISTRATOR/JAVA/JDK1.6.0_23/JRE
  3. Export CLASSPATH= $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib

That


Setting Java_home Environment System variables

2.2. Similarly, modify the second file

Input:

 
   
  
  1. sudo gedit/etc/profile

Add the following statement before Umask 022:

 
   
  
  1. export java_home =/home/administrator/java/ jdk1.6.0_23 
  2. export JRE _home =/home/administrator/java/jdk1.6.0_23/jre 
  3. export classpath = $CLASSPATH: $JAVA _home/lib: $JAVA _ home/jre/lib 
  4. export  = $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $HOME/bin 

That

2.3, log off the user, detect JDK version.

Input:

 
   
  
  1. Java-version

That


Install JRE, JDK successful

3. Install Eclipse.

3.1, to the official website download the relevant eclipse

The download here is eclipse-jee-helios-sr1-linux-gtk.tar.gz (ie Java EE).

:http://www.eclipse.org/downloads/

3.2. Put the downloaded eclipse-jee-helios-sr1-linux-gtk.tar.gz in the Java folder and unzip it.

Run the decompressed eclipse, which is


Run the decompressed eclipse

4, Installation Tomcat7.05

4.1, to the official website download the relevant Tomcat

The download here is apache-tomcat-7.0.5.tar.gz.

:http://tomcat.apache.org/

4.2. Place the downloaded apache-tomcat-7.0.5.tar.gz in the Java folder, unzip it and name it TOMCAT7

Commands that you can execute if you prefer to execute the command line

(unzip) sudo tar zxvf apache-tomcat-7.0.5

(named TOMCAT7) sudo mv apache-tomcat-7.05 TOMCAT7

4.3, the bin file under the terminal TOMCAT7

(i.e. CD Java/tomcat7/bin)

Here is the VIM editor open, you can also open with gedit, that is, enter:

 
   
  
  1. sudo gedit catalina.sh

When you enter:

 
   
  
  1. sudo vim catalina.sh

Get

  
 
  1. Cygwin=false
  2. os400=false
  3. Darwin=false
  4. Case "' uname '" in
  5. cygwin*) CYGWIN=true;;
  6. os400*) os400=true;;
  7. darwin*) Darwin=true;;

Added above:

 
   
  
  1. java_home=/home/administrator/java/jdk1.6.0_23
  2. java_opts="-server-xms512m-xmx1024m-xx:permsize=600m-xx:maxpermsize=600m- Dcom.sun.management.jmxremote "

4.4, tomcat7.0.5 Port (general tomcat7.0.5 Port default is 8080), if there is a conflict, you can modify the following files.

tomcat7/conf/server.xml" in the file:

  
 
    1. < connector  port = "9090"  protocol = "http/1.1"   
    2.             connectiontimeout = "20000"    
    3.             redirectport = "8443"  />  

Change it to 9090, or whatever it is (use 9090 here).

4.5, here has entered the Java/tomcat7/bin folder inside.

Input:

 
   
  
  1. sudo./starup.sh

Start Tomcat 7.

If it appears

  
 
    1. Using  catalina_base:   /home/administrator/java/tomcat7 
    2. using catalina_home:   /home/administrator/java/tomcat7 
    3. using catalina_tmpdir: /home/ administrator/java/tomcat7/temp 
    4. Using JRE_HOME :         /home/administrator/java/jdk1.6.0_23 
    5. using classpath:       /home/administrator/ java/tomcat7/bin/bootstrap.jar:/home/administrator/java/tomcat7/bin/tomcat-juli.jar 

is successful.

That

Copyright NOTICE: This article for Bo Master http://www.zuiniusn.com original article, without Bo Master permission not reproduced.

Installing the JDK under Ubuntu 10.10 Configuring Eclipse and Tomcat

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.