RFXtrx433E wont come online

getting this error in OH2, it works fine with OH1

I have had this working with previous versions of OH2.
The device used to be found by OH2, that doesnt happen now. I can add it manually, but it wont come online.
I can also connect to the device using RFXMGR no issues.

2017-02-11 09:55:40.106 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device ‘COM5’ using JD2XX.
2017-02-11 09:55:40.158 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Error occurred when trying to load native library for OS ‘Windows 10’ version ‘10.0’, processor 'x86’
java.lang.UnsatisfiedLinkError: C:\OH2\userdata\tmp\jd2xx3028921937065943776.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)[:1.8.0_121]
at java.lang.ClassLoader.loadLibrary0(Unknown Source)[:1.8.0_121]
at java.lang.ClassLoader.loadLibrary(Unknown Source)[:1.8.0_121]
at java.lang.Runtime.load0(Unknown Source)[:1.8.0_121]
at java.lang.System.load(Unknown Source)[:1.8.0_121]
at cz.adamh.utils.NativeUtils.loadLibraryFromJar(NativeUtils.java:91)[209:org.openhab.binding.rfxcom:2.0.0]
at jd2xx.JD2XX.(JD2XX.java:768)[209:org.openhab.binding.rfxcom:2.0.0]
at org.openhab.binding.rfxcom.internal.connector.RFXComJD2XXConnector.connect(RFXComJD2XXConnector.java:47)[209:org.openhab.binding.rfxcom:2.0.0]
at org.openhab.binding.rfxcom.handler.RFXComBridgeHandler.connect(RFXComBridgeHandler.java:162)[209:org.openhab.binding.rfxcom:2.0.0]
at org.openhab.binding.rfxcom.handler.RFXComBridgeHandler.access$8(RFXComBridgeHandler.java:142)[209:org.openhab.binding.rfxcom:2.0.0]
at org.openhab.binding.rfxcom.handler.RFXComBridgeHandler$1.run(RFXComBridgeHandler.java:115)[209:org.openhab.binding.rfxcom:2.0.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[:1.8.0_121]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)[:1.8.0_121]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)[:1.8.0_121]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.8.0_121]
at java.lang.Thread.run(Unknown Source)[:1.8.0_121]

I think maybe my JAVA_HOME was not set correctly. I also installed JDK, not sure which of these fixed the problem, but it seems to be working ok now.