LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 07-13-2006, 02:29 PM   #1
z-vet
Member
 
Registered: Aug 2004
Location: Israel
Distribution: LMDE 5
Posts: 271

Rep: Reputation: 34
Question Need help choosing Java application server.


Hi all.
Apache/FreeBSD. My client wants me to install Java application server. Something i never did and have absolutely no knowledge about, so i need help choosing one. Thanks.
 
Old 07-13-2006, 03:49 PM   #2
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
You may install Apache-Tomcat Server 4.1.32 with J2SE 1.4.2. The newer versions of both are available but, I haven't tested them yet.

If you already have j2SE installed, skip this part and proceed to Section B

Section A: J2SE Installation
1) Download the J2SE v 1.4.2_12 SDK package from sun's website. Here's the link
http://java.sun.com/j2se/1.4.2/download.html
Please select the "self-extracting file" under this section
Linux Platform - Java(TM) 2 SDK, Standard Edition 1.4.2_12 for download.

2) Make this j2sdk-1_4_2_12-linux-i586.bin executable
Code:
chmod 0755 j2sdk-1_4_2_12-linux-i586.bin
3) Run this file
Code:
./j2sdk-1_4_2_12-linux-i586.bin
4) You will see some "Terms and Conditions" screen. Keep pressing ENTER till you are being asked to type "yes" or "no". Type "yes" and press ENTER.
5) A directory named j2sdk1.4.2_12 will be created in the current working directory. Copy/Move this directory to your desired installation directory. I would prefer /usr/local
Code:
mv j2sdk1.4.2_12 /usr/local/ -v
6) Add the path to /usr/local/j2sdk1.4.2_12/bin to your system's PATH variable
Code:
export PATH=$PATH:/usr/local/j2sdk1.4.2_12/bin
7) Now check if it's configured correcly. Try running java and javac
Code:
java
Code:
javac
8) If you see some output other than "command not found", then you are done.
9) To make this PATH variable hold the path of the java executables, add the export command used above at the end of /etc/profile file
Code:
export PATH=$PATH:/usr/local/j2sdk1.4.2_12/bin

Section B: Apache-Tomcat Installation
1) Download the Apache-Tomcat Server zip package. Here's this link
http://www.reverse.net/pub/apache/to...cat-4.1.32.zip
2) Unzip this package
Code:
unzip apache-tomcat-4.1.32.zip
3) A folder named apache-tomcat-4.1.32 will be created in the current working directory. Move this folder to /usr/local/
Code:
mv apache-tomcat-4.1.32 /usr/local/ -v
4) Make the files of this folder executable
Code:
chmod -cR 755 /usr/local/apache-tomcat-4.1.32/*
5) Set JAVA_HOME variable to point to the J2SE directory.
Code:
export JAVA_HOME=/usr/local/j2sdk1.4.2_12
6) Set CATALINA_HOME variable to point to the Tomcat directory
Code:
export CATALINA_HOME=/usr/local/apache-tomcat-4.1.32
7) Add these lines to the file /etc/profile
Code:
export JAVA_HOME=/usr/local/j2sdk1.4.2_12
export CATALINA_HOME=/usr/local/apache-tomcat-4.1.32
8) To start Tomcat, run this command
Code:
/usr/local/apache-tomcat-4.1.32/bin/startup.sh
10) To stop Tomcat, run this command
Code:
/usr/local/apache-tomcat-4.1.32/bin/shutdown.sh

Last edited by manishsingh4u; 07-13-2006 at 04:22 PM.
 
Old 07-13-2006, 04:44 PM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Using the ports system might be more convenient(for Apache, Tomcat, Java, mod_jk2). I think you can install java binaries now without compiling.
 
  


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
Java Application Server and Studio Creator dougnc Linux - General 14 11-25-2006 10:51 AM
LXer: Mysql Helps Set World Record in Java Application Server Benchmarks LXer Syndicated Linux News 0 06-14-2006 03:21 AM
Choosing Helper Application blackdragonblood Linux - Software 2 07-25-2005 07:11 AM
Problem installing sun java application server on linux R0ss_here Linux - Software 0 02-13-2004 12:14 PM
Help on choosing mail server. cirofren Linux - Software 2 10-27-2003 04:07 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:47 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