Apache Tomcat error Could the main class:

Hello!

I am trying some Apache Cassandra examples and could run the server by calling the cassandra.bat file before. I didn’t change anything deliberately, but now, Cassandra will not start.

I searched the Web for the error message „Could not find the main class: Files\Apache. Program will exit.“ and found out that there may be some space in a system variable called CATALINA_HOME, but I didn’t set that variable ever. Do you know about a proper solution for this error?

Thanks in advance!

E. SABAN

C:\Program Files\Apache Cassandra\bin>cassandra Starting Cassandra Server Exception in thread „main“ java.lang.NoClassDefFoundError: Files\Apache Caused by: java.lang.ClassNotFoundException: Files\Apache 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: Files\Apache. Program will exit.

Hello Saban, I am sorry I am not a Tomcat expert and am unable to help.

Found the solution to my problem
I found out the problem. I had changed the path of Cassandra to „Apache Cassandra“. That’s the reason for the problems. I solved the self-made problem by removing the quotation marks around the JAVA_HOME definition. The space inbetween „Program Files“ seems not to be a problem. I renamed „Apache Cassandra“ back to „Apache-Cassandra-0.7.4“. Now, it runs properly.

Hello,
I don’t think that i could help, sorry. But this error normally means that this application does not find some Java bib. Some class is missing.

Just try to set CATALINA_HOME as a system variable. Something like:
CATALINA_HOME=E:\Tomcat\

Ans be sure that your Java home variable is also set. Something like:
JAVA_HOME=E:\j2sdk1.4.2\

best regards

Hi Sae1962

i am very busy today.
Look at this link it will helps you.

http://tomcat.apache.org/tomcat-4.1-doc/class-loader…

Hello!

I am trying some Apache Cassandra examples and could run the
server by calling the cassandra.bat file before. I didn’t
change anything deliberately, but now, Cassandra will not
start.

I searched the Web for the error message „Could not find the
main class: Files\Apache. Program will exit.“ and found out
that there may be some space in a system variable called
CATALINA_HOME, but I didn’t set that variable ever. Do you
know about a proper solution for this error?

Thanks in advance!

E. SABAN

ah, TY for letting me know. Good luck with your project.

Hallo E.SABAN,

bin leider nicht mehr in dem Feld tätig - werde gleich mein Profil ändern. Sorry.

Viel Erfolg

A.Hahn

Seems that the start script can’t handle spaces in the path. Either correct the script by applying „“ around the path or move the installation to a path without spaces.

Regards,
Heinz

C:\Program Files\Apache Cassandra\bin>cassandra Starting
Cassandra Server Exception in thread „main“
java.lang.NoClassDefFoundError: Files\Apache Caused by:
java.lang.ClassNotFoundException: Files\Apache at