pi@raspberrypi:~ $ sudo apt-get install zulu-8
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package zulu-8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘zulu-8’ has no installation candidate
Because I’m really a newbe on Raspberry and Linux I need to get help.
This solution only works for RPi using openHABian.
I experience the same problem as in the initial comment “Package ‘zulu-8’ has no installation candidate”.
Sorry, I don’t find the apt repo in there. There is a tar.gz file, but I can download that from the zulu homepage as well and I don’t know how to make a full install from that (just unzipping the archive doesn’t get me anywhere).
Sorry, I need more details…
I uninstalled Oracle Java prior to installing Zulu.
I’m a Linux beginner only, so maybe I can get the tar.gz running, but I need help with that please.
What I can do is:
cd /usr/lib/jvm
wget https://cdn.azul.com/zulu-embedded/bin/zulu8.42.0.195-ca-jdk1.8.0_232-linux_aarch32hf.tar.gz
tar -xzvf zulu8.42.0.195-ca-jdk1.8.0_232-linux_aarch32hf.tar.gz
mv zulu8.42.0.195-ca-jdk1.8.0_232-linux_aarch32hf zulu-8 # not sure if needed or any good
export JAVA_HOME=/usr/lib/jvm/zulu-8/
export PATH=<old PATH, Oracle java stuff removed, /usr/lib/jvm/zulu-8/bin added>
But this still does not configure a java alternative, and I feel I might be missing some steps?
I’ve been using Linux for years and still feel like a noob at times. It doesn’t help that I also use different Linux OS’s and get things crossed up. Don’t give up and use google search to help with where the correct path should be for whatever your downloading/installing.
I’m useing openhabian so give me a few minuets to verify the apt repo that I have.
@yannick_hein what OS are you using, looking at a few post above seems like your on Ubuntu? If so, you may want to start a new topic as this one has been marked solved. In the new topic please add your OS and version of OH to be installed. I’m sure someone in the forum that is more familiar with Ubuntu can help.