You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ashwanth Fernando (JIRA)" <ji...@apache.org> on 2013/05/16 21:21:16 UTC

[jira] [Issue Comment Deleted] (KAFKA-259) Give better error message when trying to run shell scripts without having built/downloaded the jars yet

     [ https://issues.apache.org/jira/browse/KAFKA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashwanth Fernando updated KAFKA-259:
------------------------------------

    Comment: was deleted

(was: Hi,
     I have submitted a patch for this. Basically the patch checks whether the java process returns with an exit code of 1 (abnormal), and if it does checks the output of the java process to see whether there are NoClassDefFoundError or "Could not find or load main class" messages and then if it does, displays this message:

"Please build the project using sbt. Documentation is available at http://kafka.apache.org/"

Please let me know if you have any concerns with this approach.)
    
> Give better error message when trying to run shell scripts without having built/downloaded the jars yet
> -------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-259
>                 URL: https://issues.apache.org/jira/browse/KAFKA-259
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.6
>         Environment: Mac OSX Lion
>            Reporter: Ross Crawford-d'Heureuse
>            Priority: Minor
>              Labels: newbie
>
> Hi there, I've cloned from the kafka github repo and tried to run the start server script:
>  ./bin/kafka-server-start.sh config/server.properties 
> Which results in:
> Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka
> Caused by: java.lang.ClassNotFoundException: kafka.Kafka
> 	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:306)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> It seems that Im missing a build step? what have I forgotten to do?
> Thanks in advance and I look forward to using kafka.
> regards
> rcdh

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira