tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Rui" <william....@accesschina.com.cn>
Subject RE: Apache Tomcat 5.5 install issues.
Date Mon, 06 Aug 2007 02:40:28 GMT
Hi, Kristian

Thanks for your help,

>>(a) You don't have a JDK installed but just a JRE which
[CODE]
root@localhost apache-tomcat-5.5.23> ls -a ..
.   apache-tomcat-5.5.23         jdk1.5.0_12                  jre1.5.0_12
..  apache-tomcat-5.5.23.tar.gz  jdk-1_5_0_12-linux-i586.bin
jre-1_5_0_12-linux-i586.bin
root@localhost apache-tomcat-5.5.23> rpm -qa | grep jdk
root@localhost apache-tomcat-5.5.23> rpm -qa | grep jre
root@localhost apache-tomcat-5.5.23>
[/CODE]
It seems that I've not install jdk&jre, but actually I just installed them
by their manual (such as http://java.sun.com/j2se/1.5.0/install-linux.html).


>> which java
>> which javac
[CODE]
root@localhost apache-tomcat-5.5.23> which java
/usr/bin/which: no java in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/
bin:/usr/sbin:/usr/bin:/usr/java/jdk1.5.0_07/bin:/var/www/tomcat/bin:/usr/X1
1R6/bin:/root/bin)
root@localhost apache-tomcat-5.5.23> which javac
/usr/bin/which: no javac in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/
bin:/usr/sbin:/usr/bin:/usr/java/jdk1.5.0_07/bin:/var/www/tomcat/bin:/usr/X1
1R6/bin:/root/bin)
[/CODE]

It really seems that I've not successfully installed them, but how can I?

Thanks and regards,


-----Original Message-----
From: Kristian Rink [mailto:kristian@zimmer428.net] 
Sent: 2007?8?3? 16:30
To: users@tomcat.apache.org
Subject: Re: Apache Tomcat 5.5 install issues.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

William;


["William Rui" <william.rui@accesschina.com.cn> @ Fri, 3 Aug 2007
16:19:17 +0800]

> *** Host support ***
> checking C flags dependant on host system type... ok
> *** Java compilation tools ***
> checking for javac... NONE
> checking for javac... NONE
> configure: error: javac not found

There could be two things causing this issue:

(a) You don't have a JDK installed but just a JRE which, well, just
provides the features required to run Java application but actually
lacks everything required to build Java apps from source. Solution
would be to install an up-to-date JDK.

(b) you don't have your PATH set up so your shell can't find javac.
To set this right, best is putting something like this to your shell
configuration file:

export JAVA_HOME=/path/to/your/jdk
export PATH=$JAVA_HOME/bin:$PATH

(assuming a bash-like shell).


By the way you can check pretty well how things are by trying to
manually entering "java" or "javac" in your terminal, or by using

which java
which javac

to locate where these friends are. Maybe, however, you'll be better /
quicker off installing a pre-built tomcat binary. :)

Cheers,
Kristian

- -- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGsueWcxBAPOA1m6wRAjF9AJ92sDDUMX4+rLplBn7GNtxvS2j2JQCdE4yk
Psy9OUqGng9xy3pXOdKFaVM=
=woaR
-----END PGP SIGNATURE-----



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message