I tried the installation of Zulu Embedded on my RPI 2 using the method described here.
The installation succeeded but I am just surprised to get an old version:
I found the repo method did not work on ARM64 Ubuntu, so I had to use the manual method of installation. I posted how here. If you want the newer version give it a go after taking a backup. Have not tried to do it this way for the PI…
sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Ign:2 http://repos.azulsystems.com/debian stable InRelease
Get:3 http://repos.azulsystems.com/debian stable Release [8,604 B]
Get:4 http://repos.azulsystems.com/debian stable Release.gpg [819 B]
Ign:4 http://repos.azulsystems.com/debian stable Release.gpg
Get:5 http://repos.azulsystems.com/debian stable/main armhf Packages [1,623 B]
Get:6 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Fetched 26.0 kB in 2s (9,495 B/s)
Reading package lists... Done
W: GPG error: http://repos.azulsystems.com/debian stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B1998361219BD9C9
W: The repository 'http://repos.azulsystems.com/debian stable Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I wouldn’t recommend the use of the Zulu repo for installations of Zulu Embedded. It appears to be out of date and the latest version available is below the one recommended by openHAB.
Never heard of Zulu; sorry, but their download site is a shocker, as it does not tel which of all these versions I need to install.
I adopted apt-get packages, as these are straightforward to install.
Since I only understood half of what you guys were saying (since my post); can someone please indicate what I should do; either install java, wait for Zulu to be sorted, or else?
Thanks.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9
Segmentation fault
Executing: /tmp/apt-key-gpghome.79ETrTYrty/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.79ETrTYrty/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr
or
sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Ign:2 http://repos.azulsystems.com/debian stable InRelease
Hit:3 http://repos.azulsystems.com/debian stable Release
Get:4 http://repos.azulsystems.com/debian stable Release.gpg [819 B]
Hit:5 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Ign:4 http://repos.azulsystems.com/debian stable Release.gpg
Fetched 819 B in 2s (342 B/s)
Reading package lists... Done
W: GPG error: http://repos.azulsystems.com/debian stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B1998361219BD9C9
W: The repository 'http://repos.azulsystems.com/debian stable Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I thought bugger it; imaged with Stretch Lite (2018-10-09-raspbian-stretch-lite) and went straight into the Java8 install… which failed, based on https://gist.github.com/ribasco/fff7d30b31807eb02b32bcf35164f11f … adding key and repo worked, but trying to install java failed:
On that note, and that Zulu is the preferred OHv2 set-up, is there somebody who has successfully installed Zulu on a new Stretch Lite on a rPi3 and can list the steps taken to get there.
I get the principle of it; e.g. if there is no apt-get install, a key needs to be added, then a repo added, then apt-get update to download the files; then install the package with apt-get install. However non of the docu I have tried gets me there: neither java nor zulu.
Any help appreciated.
Started again, and instead of doing my basic (standard) config, I went straight to the Java install.
After neither one completed, and showed segmentation errors, I got suspicious about the 16GB SanDisk SD card; am currently testing it, and it has thrown umpteen sector errors. This is good enough to get some new cards in the local shop and start over.
Interestingly enough this 16GB card has been running for 420 days, before I used it yesterday to build a OHv2 rPi3.
Is it safe to say that Zulu is where OH is going?
The tar ball I downloaded had eval in its name; and I see pricing information for their product on their site. Can we be sure this package remains ‘free’ to use? If I understand this JAva business somewhat, it seems Oracle wants some money if used in production, and whoever can afford it will leave this brand behind, why it is no longer included in distros?!
If all this has some merit, and Zulu is the next best thing, then this is the way forward, and the way that should be promoted.
Will update in the coming days how the new card went.
I think so. It is (currently) the recommended Java framework to run OH2 on top.
From what I understand, Zulu (standard & embedded) will remain open & free (of charge) since it is based on OpenJDK.
The pricing on their site with regards to Zulu embedded seems to be related to (optional) support plans targeting custom developments? (not sure)
Of course… you can never tell with these companies… they may change their commercial policy over night
Ps: I use the devil (Oracle) and I don’t really care about their licensing since I don’t use it in a commercial/production environment
Sorry, should have mentioned that there’s a different version for each “architecture”, since you’re using a PI3 with a 32bit OS (the recommended) you’ll be wanting:
I actually noticed that the 64-bit was wrong; removed it, including the links, and installed the 32-bit soft float package, which didn’t work either; but this one ‘hard float’ does.
To summarise the steps, which worked for me based on your post: