Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How do I install Oracle Java JDK 7?

I need help on how can I install java oracle 7, netbeans and tomcat on ubuntu platform. I 'm new to ubuntu, totally zero knowledge on ubuntu. I have tried to search for installations but I was confused on how should I install java. Pls. Help on how can I install java and also set the path, classpath, java_home, catalina_home? is there any guides about installation and environment variable setup?

share|improve this question

marked as duplicate by Jorge Castro, Thomas W., LnxSlck, con-f-use, Oli Oct 23 '12 at 15:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
related question -> askubuntu.com/questions/75401/problem-installing-netbeans-7-0-1 –  hhlp Oct 23 '12 at 11:29
    
You should probably ask a new question for Tomcat. –  Jorge Castro Oct 23 '12 at 12:39
add comment

2 Answers 2

Download Tomcat

extract the file apache-tomcat-7.0.32.tar.gz using

tar -xvf apache-tomcat-7.0.32.tar.gz

if you keep the extracted distribution in user home directory then set up environment variables using below command other wise specify the path of the tomcat directory.

export CATALINA_HOME=~/apache-tomcat-7.0.32

you can set up any Environment variable usign export command, use below command for more info on export.

man export 

once these env variables are setup

$CATALINA_HOME/bin/catalina.sh start 

to Start Tomcat

 $CATALINA_HOME/bin/catalina.sh stop 

to stop Tomcat

share|improve this answer
add comment

http://www.iasptk.com/ubuntu-oracle-java7-jdk7-jre7-firefox-chrome-plugin

Ubuntu. Oracle Java 7.

Install the Oracle JDK 7.

Install the Oracle JRE 7.

Install the Firefox/Chrome Oracle Java 7 plugin

Tomcat 7

Install Tomcat 7 on Ubuntu 12.04

http://www.iasptk.com/ubuntu/20459-install-tomcat-7-on-ubuntu-1204-from-source-with-oracle-java-7

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.