On 8/28/2012 2:39 AM, irfan pasha wrote:
Hi,

I have installed tomcat 7.0.29 on windows7. I have download .tar.gz
file from http://tomcat.apache.org/download-70.cgi.

My bash and the console both are in same machine. I have installed MKS
tool kit that enables me to run bash on Windows.

Let me know if you need more information.

Regards,
Irfan




On Tue, Aug 28, 2012 at 2:25 PM, André Warnier <a...@ice-sa.com> wrote:
irfan pasha wrote:

Hi,

I have recently installed tomcat7 version and tried to start
catalina.sh from my bash on my windows machine after setting the JAVA
path.


The above is a bit confusing (and incomplete).  On which machine with which
OS is which precise (7.x.y) version of Tomcat installed, and where did you
get this Tomcat from ?
And which machine has a "bash" and where is that console running ?



I get the following error when i start in my console

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/s
tartup/Bootstrap
Caused by: java.lang.ClassNotFoundException:
org.apache.catalina.startup.Bootstr
ap
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.catalina.startup.Bootstrap.
Program w
ill exit.

It was working fine for earlier versions of tomcat.

Any help is appreciated.

Irfan,

Why not download the appropriate zip file? This way you get the native dll as a bonus (plus other stuff) so you can use the APR connector if you wish.

I just did the following for 7.0.29, which works fine. I'm using Cygwin on Windows 7 64 bit.

1. Download the windows zip file
2. Unzip it in the bash shell
3. cd to apache-tomcat-7.0.29/bin
4. chmod 755 *.sh
5. ./catatlina.sh start

Works fine.

I normally use startup.sh and shutdown.sh when I launch from Cygwin. I also have a setenv.sh script that enables JMX, sets a Derby database home, and a default log4j home for applications I test.

All works as expected.

My JRE_HOME and JAVA_HOME are set as follows:

JRE_HOME = C:\Program Files\Java\jre7
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_05

I also use the .bat files to launch Tomcat from Windows Explorer, and NetBeans uses the .bat files (on Windows, .sh obviously on Linux) to manage the Tomcat instances.

I find it a little easier to control which JRE I use to run Tomcat with when I'm running it from a bash shell (or NetBeans, which has a Platform option) than with a DOS command shell.

I suppose I could use the .tar.gz download, but it's useful to test APR connectors as well so I use the .zip download.

. . . . just my two cents.
/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to