On 18/11/2010 09:46, Salam Y. ELIAS wrote:
> I need to set up the environment variable JAVA_HOME and and
> CATALINA_HOME to start some web and Java EE,  am  little bit confused
> with conflicting information. 

OK.  No problem.

> When I run 
>  java -version
> ie get
> java version "1.6.0_18"
> OpenJDK Runtime Environment (IcedTea6 1.8.2)
> (fedora-43.1.8.2.fc13-x86_64)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
> 
> When I run "which java"
> 
> I get
> "/usr/bin/java[/QUOTE]"

OK so far.

> checking my usr/share I see several directories
>       java (full of files and directories)
>       java-1.3.0 (1 jar in it)
>       java-1.3.1 (empty)
>       java-1.4.0 (empty)
>       java-1.5.0 (empty)
>       java-1.6.0 (empty)
>       java-1.7.0 (empty)
> 
> Issuing the "echo %PATH gives the following"
> 
>       
> /usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/salam/bin
> 
> 
> In eclipse helios 3.6, I see in preferences > Java I have 
> 
>       /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
> 
> 
> How one can check that he has Java EE setup correctly with Apache Tomcat
> 6 ?

If you're running Tomcat inside an IDE, it'll configure both for you.

If you're running Tomcat on the OS, you can type:

 echo $JAVA_HOME

to find out if the variable is already set.

> I have Apache Tomcat up and running and need to setup CATALINA_HOME. 

If you already have it running, why do you need to set CATALINA_HOME?

CATALINA_HOME & CATALINA_BASE are set automatically by Tomcat when it
starts up.  You only need to set CATALINA_BASE if you are configuring
multiple separate Tomcat instances while using the same binary.

What are you trying to achieve?

> In the usr/share/java directory, I have a directory "tomcat6" as well as
> a tomcat6 directory in /usr/share/. 

What is in those directories?

How did you install Tomcat, by downloading a package in your OS or by
downloading Tomcat from the tomcat.apache.org site?


p

> In Eclipse, when I try to add a
> server, eclipse doesnt see that I have a type of tomcat server.
> 
> I have found so many articles on the web but no 2 articles are similar.
> I tried to browse Sun's "Path setup tutorial" but it seems it is not
> available anymore.
> 
> Thanks for your help
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

Attachment: 0x62590808.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to