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

  • SEARCH
  • Home
  • 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 8436539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:12:16+00:00 2026-06-10T07:12:16+00:00

I downloaded the latest google caliper source code and build it using maven. Now

  • 0

I downloaded the latest google caliper source code and build it using maven. Now I am trying to run google caliper example test given here.. I am using the below command to execute the test.

java -cp /home/rakesh/programming/refcode/caliper/caliper/target/caliper-1.0-SNAPSHOT.jar  com.google.caliper.Runner examples.StringBuilderBenchmark

But I get the following error.

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Splitter
    at com.google.caliper.Runner.<clinit>(Runner.java:67)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Splitter
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

I tried to look into the caliper jar file and I couldn’t find the com.google.common.base.Splitter class file. Even I coudln’t get the Splitter.java file. Can any one suggest me what I am missing here?

EDIT1:
I figured out that com.google.common.base.Splitter class is present in appengine-tools-sdk-1.2.1.jar jar file I included the jar file in the command as shown below.

java -cp /home/rakesh/programming/refcode/caliper/caliper/target/caliper-1.0-SNAPSHOT.jar:/home/rakesh/programming/refcode/caliper/examples/appengine-tools-sdk-1.2.1.jar  com.google.caliper.Runner examples.StringBuilderBenchmark

But the error is same it doesn’t look like the command is looking into the other jar file which has the Splitter class.

  • 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-10T07:12:18+00:00Added an answer on June 10, 2026 at 7:12 am

    My answer is no real answer, but it’s too long for a comment.

    Unfortunately, I know close to nothing about maven. What works for me is downloading the git repository and creating eclipse project. This is surely no clean solution, but it’s easy and allows me to learn from the libraries.

    What worked for me:

    In my working tree I located pom.xml, switched to that directory and ran mvn install. It created some jar somewhere deep in ~/.m2/repository. As the path was too long for my patience, I created a symlink via ln -s ~/.m2/repository/com/google/ .. I compiled manually the StringBuilderBenchmark and got exactly your error.

    Then I ran mvn install in my guava folder and now running

    java -cp .:\
    ./google/caliper/caliper/1.0-SNAPSHOT/caliper-1.0-SNAPSHOT.jar:\
    ./google/guava/guava/12.0/guava-12.0.jar \
    examples/StringBuilderBenchmark
    

    complains about missing com/google/gson/JsonParser from gson. Then you may need google instrumenter and that’s it.

    This is surely not the way to go. Maven should take care of everything and I very much hope it can. I’d suggest adding the tag maven to your question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I downloaded the latest source of mod_wsgi from https://code.google.com/p/modwsgi/source/checkout , but I can’t compile
I just downloaded the latest Google API PHP client library (0.5.0) there: http://code.google.com/p/google-api-php-client/downloads/detail?name=google-api-php-client-0.5.0.tar.gz&can=2&q= And
I downloaded the latest open source version of QT4-and its installed in c:\qt\2009.04. I've
I have downloaded Wikipedia latest dump and parsed it a MySQL Database. Now i
From the GWT page ( http://code.google.com/webtoolkit/doc/latest/DevGuideUiCss.html#cssfiles ), it mentions 2 ways (for modern application):
I downloaded the latest symfony2 (2.0.10) and tried to run bin/vendors install but it
I'm trying to use the latest Google NaCl SDK. Following the instructions at https://developers.google.com/native-client/pepper18/devguide/tutorial
I'm trying to create a sample gwt project using roo as given in the
I downloaded the latest android sdk from Google and unzipped it in my home
I'm just trying to make the basic Selenium2Example work with Firefox 4 using Maven

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.