Hello, Not sure if this should go to the user or dev mailing list, but the cassandra.bat file gave me this error on Vista:
C:\programs\apache-cassandra-incubating-0.5.0>bin\cassandra -f Invalid parameter - P: Starting Cassandra Server Listening for transport dt_socket at address: 8888 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/cassandra/ service/CassandraDaemon Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.service.Cassan draDaemon at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Could not find the main class: org.apache.cassandra.service.CassandraDaemon. Pr ogram will exit. The problem is in the handling of the classpath and the 'P:' substitution lines. I just set the classpath directly and it worked fine. My batch file looks like this now: @REM @REM Licensed to the Apache Software Foundation (ASF) under one or more @REM contributor license agreements. See the NOTICE file distributed with @REM this work for additional information regarding copyright ownership. @REM The ASF licenses this file to You under the Apache License, Version 2.0 @REM (the "License"); you may not use this file except in compliance with @REM the License. You may obtain a copy of the License at @REM @REM http://www.apache.org/licenses/LICENSE-2.0 @REM @REM Unless required by applicable law or agreed to in writing, software @REM distributed under the License is distributed on an "AS IS" BASIS, @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @REM See the License for the specific language governing permissions and @REM limitations under the License. @echo off SETLOCAL set JAVA_HOME=C:\development\Java\jdk1.6.0_14-32bit if NOT DEFINED CASSANDRA_HOME set CASSANDRA_HOME=%CD% if NOT DEFINED CASSANDRA_CONF set CASSANDRA_CONF=%CASSANDRA_HOME%\conf if NOT DEFINED CASSANDRA_MAIN set CASSANDRA_MAIN=org.apache.cassandra.service.CassandraDaemon if NOT DEFINED JAVA_HOME goto err REM ***** JAVA options ***** set JAVA_OPTS=^ -ea^ -Xdebug^ -Xrunjdwp:transport=dt_socket,server=y,address=8888,suspend=n^ -Xms128m^ -Xmx1G^ -XX:SurvivorRatio=8^ -XX:+AggressiveOpts^ -XX:+UseParNewGC^ -XX:+UseConcMarkSweepGC^ -XX:CMSInitiatingOccupancyFraction=1^ -XX:+CMSParallelRemarkEnabled^ -XX:+HeapDumpOnOutOfMemoryError^ -Dcom.sun.management.jmxremote.port=8080^ -Dcom.sun.management.jmxremote.ssl=false^ -Dcom.sun.management.jmxremote.authenticate=false REM ***** CLASSPATH library setting ***** set CLASSPATH="%CASSANDRA_HOME%\lib" for %%i in ("%CASSANDRA_HOME%\lib\*.jar") do call :append %%i goto okClasspath :append set CLASSPATH=%CLASSPATH%;\%* goto :eof :okClasspath set CASSANDRA_CLASSPATH=%CASSANDRA_HOME%;%CASSANDRA_CONF%;%CLASSPATH%;%CASSANDRA_HOME%\build\classes set CASSANDRA_PARAMS=-Dcassandra -Dstorage-config="%CASSANDRA_CONF%" goto runDaemon :runDaemon echo Starting Cassandra Server "%JAVA_HOME%\bin\java" %JAVA_OPTS% %CASSANDRA_PARAMS% -cp "%CASSANDRA_CLASSPATH%" "%CASSANDRA_MAIN%" goto finally :err echo JAVA_HOME environment variable must be set! pause :finally ENDLOCAL Thanks