The existing batch file works fine for me on windows 7.  So does
Tom's, modified to not hardcode stuff it shouldn't.  (attached, w/
name mangling to make gmail happy).  Can anyone test this on XP?  If
the code we're removing to "shorten lib path for older platforms" is
required for XP we should probably not remove it.

On Thu, Feb 4, 2010 at 10:31 AM, Tom Borthwick <tborthw...@gmail.com> wrote:
> 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:

Reply via email to