Search code examples
ignite

Ignite: ERROR: Java classpath is empty


I installed ignite from source. Ref: https://apacheignite-cpp.readme.io/docs/getting-started-1

On executing the following command:

./modules/platforms/cpp/ignite/ignite

I get:

Ignite: ERROR: Java classpath is empty (did you set IGNITE_HOME environment variable?)

However, I have already set IGNITE_HOME using this command:

export IGNITE_HOME="/home/ec2-user/ignite"

I also tried executing :

./modules/platforms/cpp/ignite/ignite -igniteHome="/home/ec2-user/ignite"

However, I still get the same error


Solution

  • What is in your /home/ec2-user/ignite directory? Why there is no libs directory? IGNITE_HOME environmental variable should point to the directory where you have extracted your binary package. For example if you download and extract Ignite 1.5.0.final binary package then IGNITE_HOME should point to the root of apache-ignite-fabric-1.5.0.final-bin directory.

    UPDATE:

    If you are using sources distribution then you should set IGNITE_HOME variable to target/release-package that appears after you have run mvn package.