[Scottish] Hopeless newbie does Tomcat (or not, as the case may be...)

William Hamilton horus at bawkz.com
Thu Oct 20 12:13:54 BST 2005


Danny Owens wrote:

> Hi Steve,
>
> Once you have done the rpm installation, you can manually check that 
> java has been installed to /usr/java/j2sdk[version]/
> (please ignore your jre for now as it is not needed by tomcat)
>
> Now set up the environment variables like so;
>
> JAVA_HOME=/usr/java/j2sdk[version]
> export JAVA_HOME
>
> PATH=$JAVA_HOME/bin:$PATH
> export PATH
>
> (You can place these in /etc/profile.local on SuSe when you know it 
> works.)
>
> You can test java and javac at the command line.
>
> If you install tomcat you will also probably need ANT - both Tomcat 
> and ANT have their own environment variables that need set (see 
> install docs).
> You will also need to set a CLASSPATH environment variable if you put 
> any java classes in non-standard places.
>
> I hope this helps...
>
> best,
> Danny
>
>
> Steve Logan wrote:
>
>>> rpm -Uvh jre-1_5_0_05-linux-i586.rpm
>>
>>
>>
>> Did this for both the JRE and JDK.  Should this set the 
>> $JAVA_<whatever> environment vars or do I need to set them manually?
>>
>> I'm still confused as to why nothing appeared to happen when I tried 
>> to install with YaST??
>>
>> Steve
>>
>
Thats not strictly true about ignoring the JRE as the JDK incorporates 
the JRE and that's what is used to run Java programmes.

Not meaning to be anal about it, but i have had problems in the past 
where I have had things trying to call the wrong version of java and 
left me scratching my head wondering whats wrong :)

An easy way to check is with `which java` which will show you which 
binary is being called by showing the full path.




More information about the Scottish mailing list