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

Danny Owens danny at ipalchemy.com
Thu Oct 20 13:50:15 BST 2005


Hi Steve,

I shall attempt to answer this question, but I may leave out something 
important.

In my limited experience of linux I have noticed that there are some 
subtle differences in the mechanisms used for handling the storage of 
environment variables in configuration files from distribution to 
distribution.

e.g. Knowing you are using using SuSe, I refered to /etc/profile.local - 
it would be different in a vanilla Redhat / FC4.

As rpms are used for many different distributions, it may be argued that 
it is too difficult to be comletely compatible with every possible 
permutation of configuration - or indeed with every user's specific 
requirements - so those configurations are left to the user.

I think java is a special case, because it can be put anywhere you like, 
unlike many other applications.   Previously you just decompressed it to 
a directory and set up the environmet variables accordingly.

Perhaps having a java rpm is unnecessary...

best,
Danny



Steve Logan wrote:

> Thanks Danny,
>
> I've now got Java working correctly and can compile away...
>
> Another conceptual question:
> Is it usual 'the Linux way' to have to manually add/edit env vars like 
> this?  Should an RPM do it for you?  If so, then should I stop 
> considering RPMs as being the equivalent of Windows MSI files and more 
> as a glorified UNZIP/Put-things-in-the-right-folders kind of thing?
>
> A YaST question:
> Is installing via YaST EXACTLY the same as doing it yourself from the 
> RPMs?
>
> Ta again
>
> Steve
>
> 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
>>>
>>
>

-- 
The information contained in this e-mail, and any files transmitted with it, is confidential to the intended recipient(s). The dissemination, distribution, copying or disclosure of this message or its contents is prohibited unless authorised by the sender. If you receive this message in error, please immediately notify the sender and delete the message from your system. 

Unless expressly stated within the body of this e-mail, this e-mail should not be understood to create any contractual commitments.



You can contact the sender at:

Daniel Owens
+44 1360-449-207



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 19/10/2005




More information about the Scottish mailing list