Announcement

Collapse
No announcement yet.

Could not find or load main class org.voltdb.VoltDB

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could not find or load main class org.voltdb.VoltDB

    Okay: OSX Yosemite,

    used Eclipse to build the Community Edition,

    CLASSPATH is set to /users/J/voltdb/voltdb (that's where I put the jar file I built, along with the log4j files),

    using java version "1.7.0_79".

    Because of Mac Java awfulness I had to set JAVA_HOME to "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home".

    I'm trying to run the Voter example using "voltdb create" and am getting "Error: Could not find or load main class org.voltdb.VoltDB".

    Help?

  • #2
    FYI, this works in .profile to set the java home:

    export JAVA_HOME="`/usr/libexec/java_home -v 1.7`"

    As for building with Eclipse, I've never built with Eclipse and then tried to run outside of Eclipse. Usually we use the "ant" or perhaps "ant clean default" to build VoltDB before using the command line tools. Why didn't you try that?

    There's some info here (https://github.com/VoltDB/voltdb/wiki/Building-VoltDB) though it might be dated.

    Comment

    Working...
    X