LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-16-2006, 03:43 AM   #1
crazycondor
LQ Newbie
 
Registered: Dec 2006
Posts: 23

Rep: Reputation: 15
Tomcat - Apache Ant Installation


Hello everybody.

I am a linux newbie, nevertheless i was asked to setup a

Linux server (Debian Sarge) with J2sdk 1.4.x, Apache-Ant

1.6.5, Tomcat 5.5.x and mySql 4.1.

Until now i've done the following:

1) I installed j2sdk under /usr/local/java

2) I extracted the ant.xxx.tar.gz in /usr/local/ant

3) I extracted the tomcat.xxx.tar.gz in /usr/local/tomcat

Is that ok or must i do something else??If it is ok,

what changes must i do in the /etc/profile or in the

PATH variable?? Must i change any configurarion files in

order for the aforementioned to work properly??(Except

mysql)

Thanx in advance and sorry for the big post!!
 
Old 12-20-2006, 05:37 AM   #2
MassDosage
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Kubuntu
Posts: 75

Rep: Reputation: 15
I would recommend adding the following environment variables to the profile of the user who is going to be running Java and Ant:

export JAVA_HOME=/usr/local/java
export ANT_HOME=/usr/local/ant
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH

To test that this works run this command from a shell where these evironment variables have been set:

java -version
ant -version

These should both output version information for the installed JDK and Ant.

Now if you go to /usr/local/tomcat/bin you should be able to run ./startup.sh and then look in the file catalina.out under /usr/local/tomcat/logs to see if it starts up ok. You should then be able to open a web browser to localhost:8080 and see the tomcat welcome page.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ANT installation directory allelopath Linux - Software 3 09-17-2009 05:42 AM
Apache Ant - Tomcat Installation crazycondor Linux - Newbie 1 12-16-2006 11:27 PM
creating apache-ant package merchtemeagle Slackware 3 05-11-2005 01:12 PM
Question about Apache Ant Hockeyfan Programming 2 02-19-2005 01:17 PM
java ant tomcat j-ray Linux - Software 1 09-12-2002 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration