Hello guys. I’m new to this forum and I don’t really know if this is a question for you all, but I hope that someone here will send me to the right track.
First the setup: VM on a hyper-v host with Centos 6.6 and chef-client installed, VM bootstrapped to the chef-server (centos)
At work we decided to have a (semi)automated way to deploy hazelcast on the local envs and for that we’ll be using Chef. I tried to use simple-hazelcast recipe from https://supermarket.chef.io/cookbooks/simple-hazelcast and as I lack the experience on working with these recipes, although a simple recipe, I didn’t quite understand how it works.
My run list is includes and installs jdk and simple_hazelcast::default which runs one by one: user, install, configure and service_runit. All goes well, but in the end:
[root@hazelcast_poc ~]# tail -3 /var/log/hazelcast/current 2016-04-16_13:51:56.55516 Error: Could not find or load main class com.hazelcast.core.server.StartServer 2016-04-16_13:51:57.56414 JAVA_HOME environment variable not available. 2016-04-16_13:51:57.77994 Error: Could not find or load main class com.hazelcast.core.server.StartServer
JAVA_HOME is set to /usr/java/latest as seen below:
[root@hazelcast_poc ~]# echo $JAVA_HOME /usr/java/latest
As I don’t have too much experience with Java, I do not understand what that means:
Error: Could not find or load main class com.hazelcast.core.server.StartServer
Any help would be highly appreciated.