Unsure about installation procedures for Windows

does it point to the root directory of the Java installation? (not to the java.exe)

Yes, to the root
Sorry, been away for couple of days

Hi

Any answer on this, getting same issue when installing from download and from chocolaty on to Windows 10.

Its openHab 2.3.0.

I get the following:

openhab> Native code library failed to load.
java.lang.UnsatisfiedLinkError: no tinyb in java.library.path
Exception in thread “Thread-117” java.lang.NullPointerException
at org.openhab.binding.mochadx10.internal.MochadX10Binding$ReceiveThread.run(MochadX10Binding.java:199)

Thanks ahead of time.

1 Like

Looks like Bluetooth binding issue. Can you uninstall that binding? Perhaps you couldn’t because the VM is crashing. Maybe start with a fresh install, and try not to install that binding until you hear back from the maintainers of that binding.

Hi,
I am new to openHAB and have followed the Chocolatey installation process and have a directory path of ProgramData\chocolatey\lib\openhab. In the openhab directory I only have \tools directory +files (no start.bat) which is different to the directories showing in the installation guide. The ‘missing’ directories and files are in the \tools directory.
When I run openhab I get
openhab> Native code library failed to load.
java.lang.UnsatisfiedLinkError: no tinyb in java.library.path
I have installed Zulu version 8 and setup up JAVA_HOME.
any help appreciated as I guess I have a similar problem to the above threads
thanks.

1 Like

tinyb is used by bluetooth presence binding. Not sure if any other component also uses it.
You may post your problem on

Another new Windows 10 user here, experiencing the same issues as others above. The Chocolatey installation process for Windows, in its current form, is flawed/produces errors. I really wish the package maintainers/someone would please clean up this process so that new Windows openHAB users such as myself and others aren’t faced with these challenges right off the bat. :-/

I am really, really excited to setup openHAB - so far I like it more than any other similar system I’ve tried (NodeRED, Home Assistant, etc.). However, I’ve spent the past week trying to just get the basic system operating properly and have probably reinstalled openHAB 15 times now and it’s quite a pain :frowning:

  1. I installed Chocolatey :heavy_check_mark:

  2. I installed Java Development Kit 8 (jdk1.8.0_181) :heavy_check_mark:

  3. I have my “JAVA_HOME” environment variable properly configured. :heavy_check_mark:

  4. Installing openHAB via Chocolatey was a painful process and I received many errors. After the 5th or 6th attempt, I finally was able to get openHAB to install.

  5. The initial startup launch always works well. Devices on my home network are instantly discovered. I added some additional bindings and connected my Amazon Echo devices. Everything seems to be great! :slight_smile: But then… the second or third time I attempt to launch openHAB I receive the same errors as others above:

  • Native code library failed to load.
    java.lang.UnsatisfiedLinkError: no tinyb in java.library.path

Supposedly this is caused by the Bluetooth binding being incompatible with the standard bluetooth that comes with Windows… OK… then why do you include it in the initial setup for Windows users if it’s not compatible?!? I have tried multiple times to remove the Bluetooth binding, but have not had success.

A little later, I receive the next error, as others above have also listed:

  • Exception in thread “Thread-121” java.lang.NullPointerException at org.openhab.binding.mochadx10.internal.MochadX10Binding$ReceiveThread.run(MochadX10Binding.java:199)

And now openHAB refuses to launch. When I navigate to http://localhost:8080/start/index, 90% of the time I receive a 404 error. Every now and then, the various UIs will load, but then I am given the message “the server is offline 404”.

Such a pain! :cry:

I do have a few Linux machines available and I suppose I can go that route if I have to, but can someone please help? The installation for Windows 10, using Chocolatey, is flawed. I tried manual setup multiple times as well but did not get very far, but am willing to try anything at this point.

Thank you!

1 Like

And now, I am receiving the following errors, in addition to the two mentioned above:

java.net.SocketException: socket closed
        at java.net.TwoStacksPlainDatagramSocketImpl.receive0(Native Method)
        at java.net.TwoStacksPlainDatagramSocketImpl.receive(TwoStacksPlainDatagramSocketImpl.java:114)
        at java.net.DatagramSocket.receive(DatagramSocket.java:812)
        at com.connectsdk.discovery.provider.ssdp.SSDPClient.multicastReceive(SSDPClient.java:115)
        at com.connectsdk.discovery.provider.SSDPDiscoveryProvider$4.run(SSDPDiscoveryProvider.java:275)
        at java.lang.Thread.run(Thread.java:748)
java.net.SocketException: socket closed
        at java.net.DualStackPlainDatagramSocketImpl.socketReceiveOrPeekData(Native Method)
        at java.net.DualStackPlainDatagramSocketImpl.receive0(DualStackPlainDatagramSocketImpl.java:124)
        at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143)
        at java.net.DatagramSocket.receive(DatagramSocket.java:812)
        at com.connectsdk.discovery.provider.ssdp.SSDPClient.responseReceive(SSDPClient.java:103)
        at com.connectsdk.discovery.provider.SSDPDiscoveryProvider$3.run(SSDPDiscoveryProvider.java:255)
        at java.lang.Thread.run(Thread.java:748)

Also another brand-new Windows user to openHAB here. I stumbled upon what sounded like the perfect thing I have been looking for to integrate all of my home automation projects. So after reading a ton (and continuing to be very confused), I figured I should start from step 0 and slowly move along.

As the original poster mentioned, I had trouble from the start with the documentation on which method to do. It -seemed- like it wanted me to go the chocolatey route, and after much hesitation (had no idea what it was), I went for it. Everything seemed to go decently, though confusing.

In the end, I ran start.bat and had a few issues. After a reboot and now running start.bat in an Administrator console, I get the errors that everyone else is getting:

openhab Native code library failed to load.
java.lang.UnsatisfiedLinkError: no tinylib in java.library.path

I sat on that forever and then for the heck of it pressed the enter key. To which I was (finally) presented with the openhab> command prompt. I thought I would have seen that at the end of the startup process…weird.

http://localhost:8080/start/index does work, but I have no idea what to do. Looks like I’m on to Getting Started - Introduction | openHAB to figure it out.

Has anyone else figured out this “tinyb” issue and how to fix it, step-by-step?

I’ll tell you, the initial buy-in to openHAB is super steep…I mean, I’m an engineer/software developer and even I’m struggling here…not for the faint of heart. The documentation and the installation is in serious need of some polish!

Tom

Hello Tom,

I’ve got windows, and i also got this problem, But i figured it out!
Close Karaf/ or commandline.
Go to you the directory explore where the folder ‘Openhab’ is located.
If you are the there, surch for ‘tinyb’. The location would be in:
…:openHAB2\userdata\cache\org.eclipse.osgi\219\0.cp\lib.
Maybe its not in map 219, it can also be another one.
Then delete this file.
If you have did that, start up the command for openhab. In execute C:\openHAB2\start.
Now you can open Openhab. Than uninstall in '‘ad-ons’ bindings ‘‘bluetooth binding’’. It’s because of this bluetooth binding that makes the wrong script.
Good luck!

3 Likes

Thanks for the tip. Somehow I was still not able to uninstall the Bluetooth binding. Even after rebooting with the removed file.

(maybe because all the supplied bindings are in a “bundle”?)

Hi There,
fresh install, windows 10 - same issue as Joost_Westra unfortunately. Is there any step-by-step procedure on how to fix? tried the above, didn’t work.

you used the manual installation or the Choco installation method?
if manual: did you deploy the offline addons package also?

Also have this problem with chocolate package installation, even when I try to shutdown the system. As the systems requires to shutdown the system before launching the update process, this is something like a deadlock.

After exiting the console, I can launch the update process, but hae the following errors, maybe it helps…

And finally it’s running despites all these errors, but what I find strange, is that by default, ALL Addons… bindings are installed by default, is this normal?

no, it’s not
there is a problem with the Choco method. I wouldn’t use it to install OH2 on Win.
I would use the manual method for now

Thanks for the advice. As I cannot see any Choco or Karaf like programs in Windows, what is the cleanest way to desinstall everything? Just delete C:\ProgramData\chocolatey ? Some registery to delete?
Can I let the Java like this? Do I have to delete something more? Thanks. Chris

yes, just delete dirs and env variables

https://chocolatey.org/docs/uninstallation

You can leave Java as is and then use the manual installation method of OH2 on Win

1 Like

ok, thanks did manual installation and everything seems better now, they should maybe delete the Chocolatey installation chapter as it’s so simple to manual install!

it’s better to leave the docs entry there and fix the Choco install package :slight_smile: