Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9255897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:48:47+00:00 2026-06-18T11:48:47+00:00

As stated in the topic description, I’m trying to get Kafka 0.8 running with

  • 0

As stated in the topic description, I’m trying to get Kafka 0.8 running with Scala 2.9.2.

I was able to get a working version using the quick start for 0.8 (https://cwiki.apache.org/KAFKA/kafka-08-quick-start.html), but it is compiled against Scala 2.8.0 by default.

I tried to modify the step

./sbt package 

to

./sbt "++2.9.2 package"

it compiles without errors but during start it complains that it cannot find the main class.

/tmp/kafka-8-test/kafka[0.8]$ bin/kafka-server-start.sh onfig/server1.properties
Error: Could not find or load main class kafka.Kafka

Any help will be highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:48:48+00:00Added an answer on June 18, 2026 at 11:48 am

    The problem is that the bin/kafka-server-start.sh script uses bin/kafka-run-class.sh to execute the generated jar file.

    This script has hard-coded versions, so you need to customize it like this:

    ...
    library=$(echo "$ivyPath/org.scala-lang/scala-library/jars/scala-library-2.9.2.jar")
    CLASSPATH=$CLASSPATH:$library
    
    compiler=~$(echo "$ivyPath/org.scala-lang/scala-compiler/jars/scala-compiler-2.9.2.jar")
    CLASSPATH=$CLASSPATH:$compiler
    
    log4j=$(echo "$ivyPath/log4j/log4j/jars/log4j-1.2.15.jar")
    CLASSPATH=$CLASSPATH:$log4j
    
    slf=$(echo "$ivyPath/org.slf4j/slf4j-api/jars/slf4j-api-1.6.4.jar")
    CLASSPATH=$CLASSPATH:$slf
    
    zookeeper=$(echo "$ivyPath/org.apache.zookeeper/zookeeper/jars/zookeeper-3.3.4.jar")
    CLASSPATH=$CLASSPATH:$zookeeper
    
    jopt=$(echo "$ivyPath/net.sf.jopt-simple/jopt-simple/jars/jopt-simple-3.2.jar")
    CLASSPATH=$CLASSPATH:$jopt
    
    for file in $base_dir/core/target/scala-2.9.2/*.jar;
    do
      CLASSPATH=$CLASSPATH:$file
    done
    
    for file in $base_dir/core/lib/*.jar;
    do
      CLASSPATH=$CLASSPATH:$file
    done
    
    for file in $base_dir/perf/target/scala-2.9.2/kafka*.jar;
    do
      CLASSPATH=$CLASSPATH:$file
    done
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Without using the latest version of Lucene with faceting enabled, I am trying to
As topic states I'm trying to implement swipable tabs using Fragments and ActionBar. I've
As the topic states, using a Rich Text Editor with a PopUpManager makes typing
This description of how to get started with testing in Android appears inconsistent: http://developer.android.com/guide/topics/testing/testing_android.html
I have model: class Topic < ActiveRecord::Base attr_accessible :title, :description has_many :comments, :dependent =>
I am currently trying to get a SoftHSM going (on a Windows platform). The
I've already started similar topic , but still didn't find final solution... So here
I know the topic I started is too subjective. But I just wanted some
As stated in the title, how can I modify - in the simplest manner
as stated in the title.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.