> What are my problems? Thank you very much.
> Did you check the log file? I believe you will find your answer there
Thank you very much. The log file contains repeated following line:
/opt/tomcat/bin/catalina.sh: /opt/SUNWappserver/bin/java: No such file
or directory
In fact, this is Java part I am not clear: I have installed Java a
couple years ago. It is located in:
/usr/JAVA/j2sdk1.4.2/bin/javac
I just installed J2EE 1.4 SDK yesterday. Taking default locations, it is
located in:
/opt/SUNWappserver
[root@cng1 opt]# echo $JAVA_HOME
/opt/SUNWappserver
Shoule I set JAVA_HOME = /usr/JAVA/j2sdk1.4.2 ?
Is that bad practice to put javac and J2EE in different folders? How
should I clean up?
Many, many thanks!
Leo - 21 Mar 2006 15:02 GMT
Thank you all!
I got my TomCat running now! I think my fix is adding following line in
/root/bashrc file:
export $JAVA_HOME = /opt/SUNWappserver/jdk
(I don't know why, somebody's tutorial set $JAVA_HOME =
/opt/SUNWappserver/, which makes TomCat cannot find java)
I will think out running Tomant not as root, later. Thanks!
Andrea Desole - 21 Mar 2006 17:43 GMT
> Is that bad practice to put javac and J2EE in different folders? How
> should I clean up?
javac comes with the JDK, which is diffferent from the J2EE SDK. You can
also download a bundle J2EE/JDK, but I have personally never done it. I
prefer to use a separate JDK, to be a bit more flexible, for example
when I have to download an update. Actually, I usually don't even
download J2EE directly, I prefer to use the jars that come with the
server I use (usually JBoss).
Anyway, keep in mind that you might need JDK 5 to run Tomcat, depending
on the version you have, so your 1.4.2 might be not enough. If you have
a version of Tomcat that runs with 1.4 then setting JAVA_HOME to
/usr/JAVA/j2sdk1.4.2 is enough. Otherwise you will have to use a new
version of the JDK, either downloaded separately or the one that comes
with the J2EE SDK (I don't know how).
> Many, many thanks!
you are welcome
Juha Laiho - 21 Mar 2006 19:39 GMT
Leo <xxx@nospam.com> said:
>> Did you check the log file? I believe you will find your answer there
>
[quoted text clipped - 7 lines]
>
>/usr/JAVA/j2sdk1.4.2/bin/javac
... and in that same bin directory you should have quite a pile of other
java-related executables, too; javac is just the java compiler, not
sufficient to run anything.
>I just installed J2EE 1.4 SDK yesterday. Taking default locations, it is
>located in:
>/opt/SUNWappserver
Ok, do you really need this? Do you really need this now? If not, just
throw it away and take smaller steps. Tomcat doesn't need it.
>Shoule I set JAVA_HOME = /usr/JAVA/j2sdk1.4.2 ?
Yes.
>Is that bad practice to put javac and J2EE in different folders? How
>should I clean up?
No, that's how they should be - if you need the J2EE in the first place.
Take small steps, read tutorials and documentation. And log files.
Btw, why do you run all that as root? It's an unnecessary security risk.
Both in the sense of outsider threats, but also working as root you
yourself have much better possibilities to have a simple mistake
turn into a disaster.

Signature
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)