Hi Will, Thanks! I took a look at bin/kafka_run_class.sh and saw how it builds the classpath. I then notice that the project/boot did not exist, so I created it and placed the scala directory into it so that it gets added to the classpath.
That fixed the problem - it now runs! Thanks for pointing me in the right direction. Daniel. On 9 September 2012 05:12, wm <wmartin...@gmail.com> wrote: > Hey Daniel: > > echo $CLASSPATH and send that to us. And look inside > bin/kafka_run_shell.sh. Its important to understand the latter. > > Will > > > On 09/08/2012 11:34 PM, Daniel Kersten wrote: > >> Hi, >> >> I'm new to kafka (and scala). I downloaded 0.7.1 (I also tried the latest >> from svn) and followed the quick start guide. When I try to start the >> server, I get the following exception. Does anybody know what's going on >> and how I can fix it? Thanks! >> >> [dan@localhost kafka-0.7.1-incubating]$ bin/kafka-server-start.sh >> config/server.properties >> Exception in thread "main" java.lang.**NoClassDefFoundError: >> scala/Function0 >> at java.lang.Class.**getDeclaredMethods0(Native Method) >> at java.lang.Class.**privateGetDeclaredMethods(**Class.java:2442) >> at java.lang.Class.getMethod0(**Class.java:2685) >> at java.lang.Class.getMethod(**Class.java:1620) >> at sun.launcher.LauncherHelper.**getMainMethod(LauncherHelper.** >> java:492) >> at sun.launcher.LauncherHelper.**checkAndLoadMain(** >> LauncherHelper.java:484) >> Caused by: java.lang.**ClassNotFoundException: scala.Function0 >> at java.net.URLClassLoader$1.run(**URLClassLoader.java:366) >> at java.net.URLClassLoader$1.run(**URLClassLoader.java:355) >> at java.security.**AccessController.doPrivileged(**Native Method) >> at java.net.URLClassLoader.**findClass(URLClassLoader.java:**354) >> at java.lang.ClassLoader.**loadClass(ClassLoader.java:**423) >> at sun.misc.Launcher$**AppClassLoader.loadClass(**Launcher.java:308) >> at java.lang.ClassLoader.**loadClass(ClassLoader.java:**356) >> ... 6 more >> >> >