Eric Lucas on 22 Apr 2005 16:51:40 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Java, Tomcat, Cocoon


On Fri, Apr 22, 2005 at 11:14:28AM -0400, Carl Husa wrote:
> First, mea culpa for the long message, but just trying to be thorough.
> 
> I have an installation of SUSE 9.2.
> 
> I'm trying to install Apache Coccon, which needs Tomcat, which needs java.
> 
> 
> First, I know - or think I know - the following installation directories are 
> "not the best"
> 
> I have tomcat installed in /home/[some_name]/jakarta-tomcat-5.5.9, with 
> $CATALINA_HOME set to that directory (in profile).
> I have Coccon installed in /home/[some_name]/Cocoon/cocoon-2.1.7
> 
> $JAVA_HOME is set to /usr/java/jdk1.5.0_02 (in profile)
> 
> echo $CATALINA_HOME and echo $JAVA_HOME both report the correct paths, as set 
> in profile.
> 
> Tomcat 5.5.9 does not start,and the log gives a message that 5.5.9 requires 
> java 1.5.
> 
> If I type 
> 	java -version
> 	
> I get the following message
> 	java version "1.4.2_06"
> 	Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
> 	Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
> 	
> So, I downloaded 1.5, and installed it to 
> 	/usr/java/jdk1.5.0_02
> 	
> java -version still gives the same version as before.
> 
> Went to the web, read some "stuff" - dangerous, this reading thing - and 
> attempted to do a symbolic link with
> 	ln -s /usr/java/jdk1.5.0_02 java
> 	
> Rebooted, but java -version still reports 1.4.2_06
> 
> 
> So, the inevitable question(s):
> 	Is this current install redeemable in any way?  
> 	OR
> 	Should I just "do it again the right way"?
> 	AND THEN
> 	What is the "right way"?
> 	
> Thanks, as always.
> 
> 
> Carl F Husa, Jr.
> jabberwocky@luxsci.net

SuSE has a system for handling multiple installations of java.
Check /etc/java/README for details.

Caveat: I'm only running 9.1 professional - it might have changed 
between 9.1 and 9.2.

Hope this helps.

Eric
-- 
------------------------------------------------------------------------
#  Eric A Lucas                        |             __|__
#   "Oh, I have slipped the surly bond |          *---oOo---*
#    of earth and danced the skies on  |    __|__             __|__
#    laughter-silvered wings...        | *---oOo---*       *---oOo---*
#        -- John Gillespie Magee Jr.   |
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug