ClassNotFoundException: HashCodeBuilder

Discussion in 'Plugin Development' started by Pandemoneus, Dec 7, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Pandemoneus

    Hey folks,

    I've run into a problem (otherwise I wouldn't be posting here, eh).
    I am using the HashCodeBuilder of http://commons.apache.org/lang/.
    I am referencing it as library which I am including my plugin, but as soon as I am trying to run the plugin, I am getting the ClassNotFoundException
    Code:java
    1. java.lang.ClassNotFoundException: org.apache.commons.lang3.builder.HashCodeBuilder

    as soon as I am trying to create a new instance of it
    Code:java
    1. new HashCodeBuilder();


    (which means it is found when compiled, but not when running).

    I've been using google to find a solution, but none of them leaded to success yet.
    I tried including the class-path in my manifest file, but that didn't work either.

    My project structure is like this:
    src/
    libs/ <- the commons-lang3-3.1.jar is in there, I am referencing that
    ...

    and I am exporting all of it.
    Any ideas?

    Bump.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 22, 2016
  2. Offline

    Afforess

    You are better off figuring how to install maven and shade in the CommonsAPI into your jar. Spout uses Apache libs for a bunch of things, and we include them all in the maven build process.
     
    Pandemoneus likes this.
  3. Offline

    Pandemoneus

    Ok, finally got Maven to work (it's quite user-unfriendly) and shaded it.
    It's working now, thanks.
     
Thread Status:
Not open for further replies.

Share This Page