[Chocolatey] Installation Error: JAVA_HOME is not valid

Tags: #<Tag:0x00007f6173d77c70> #<Tag:0x00007f6173d77b80> #<Tag:0x00007f6173d77a90>
  • Platform information: W2016, Hyper-V VM
    • Hardware: CPUArchitecture/RAM/storage 2vCPU, 4GB RAM, 50GB HDD
    • OS: what OS is used and which version Win Server 2016 Core
    • Java Runtime Environment: which java platform is used and what version 8.191
    • openHAB version: 2.3.0
  • Issue of the topic: please be detailed explaining your issue Followed the Choco installation instructions. Got an error with Java installation but looking at the directory, it appears it did install. The openhab installaiton however is not on the root on C:, instead under c:\programdata\choco\lib . Java appears under C:\Program Files x86\

Seems clear it’s grumbling about JAVA_HOME

Also, please do not use Choco until the new package is approved on https://chocolatey.org/packages/openhab

Even if you fix JAVA_HOME, you will end up with another problem (where all addons will be installed) due to an issue with the offline kar file (the new Choco package fixes this by not including the kar deployment steps but it’s pending approvals)

If you want to use the existing Choco package, make sure to remove the offline addons kar from the addons folder before you startup OH2 for the first time.

Declare your Environment Variable (see here how: https://www.openhab.org/docs/installation/windows.html#prerequisites) and follow the manual installation process (see here how: https://www.openhab.org/docs/installation/windows.html#installation)

Thank you!
I’ve used choco before and thought that might be easier.

Uninstalled the choco package and installed it the manual way. Now it’s running :slight_smile:

1 Like

You are welcome ! Enjoy your HA configs. Read: https://www.openhab.org/docs/tutorial/

Did you also set your %JAVA_HOME% environment variable?

I haven’t really checked so see if it is mandatory… anyway, it always good to have it set :slight_smile:

Yep, environment variables set.

You know it just hit me, do I need to reserve IPs / set static IPs for all the devices this thing controls? Or maybe set a FQDN for each?

it depends
what kind of devices and which bindings are being used?

ChromeCast, Next Thermostats, Marantz AVR, LG TV WebOS, Unifi cam and network. Still looking for a lighting solution.

Nice setup!

Since most of your bindings are modern (2.x) you won’t need to reserve static IPs on your DHCP for the endpoints. In theory, the bindings will use mDNS discovery and you should be fine.

It’s always a good idea to have your DHCP reserving IPs for known/trusted devices.

For the network binding (it’s an 1.x legacy binding) you should use a static IP or a FQDN that gets its IP updated from DHCP on your Dynamic DNS in your LAN :slight_smile:

Great, thanks.

1 Like

While I have your attention; I’ve added several things and they show as online. Yet, using the paper UI or any other, none of my Things appear. Any idea why this might be?

To display stuff in the control section of PaperUI you need to create Items. You can auto-create them by simply clicking on the radio button of the Thing’s Channel.

To use BasicUI, you need both Items and a sitemap

Read more here: https://www.openhab.org/docs/tutorial/sitemap.html#creating-a-sitemap