Even after setting all the paths correctly, I get an error saying the "setclasspath.sh" cannot be found.

I checked the directory and it was there.

I then changed the permissions using chmod +x setclasspath.sh but to no avail. I've changed the permissions of all the files inside the "bin" directory but it's not working.

Please help.

ash@Megadeth:~$ JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
ash@Megadeth:~$ export JAVA_HOME
ash@Megadeth:~$ JRE_HOME=/usr/lib/jvm/java-1.6.0-openjdk/jre
ash@Megadeth:~$ export JRE_HOME
ash@Megadeth:~$ PATH=/usr/lib/jvm/java-1.6.0-openjdk/bin:$PATH
ash@Megadeth:~$ export PATH
ash@Megadeth:~$ CLASSPATH=$PATH:$CLASSPATH
ash@Megadeth:~$ export CLASSPATH
ash@Megadeth:~$ CATALINA_HOME=/home/tomcat/tomcat1
ash@Megadeth:~$ export CATALINA_HOME
ash@Megadeth:~$ cd tomcat/tomcat1/bin
ash@Megadeth:~/tomcat/tomcat1/bin$ ./startup.sh
Cannot find /home/tomcat/tomcat1/bin/setclasspath.sh
This file is needed to run this program
ash@Megadeth:~/tomcat/tomcat1/bin$

Fixed it. The CATALINA_HOME path was wrong.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.