How to Setup OpenHab Developing Environment on Windows 10

(Mohamed H. Elganainy) #1

I am new to the openHab system. And I just want to know how to setup the Developing environment on windows 10 and eclipse. And what OSGi Framework does Openhab use (Eclipse equinox/Apache Felix or what??). And do i need to learn how to use Apache Karaf??

0 Likes

(Jan N. Klug) #2

What exactly do you want to do? Use Openhab and create rules or develop a new binding? In both cases it should not be necessary to get deeper knowledge of Karaf.

0 Likes

(Mohamed H. Elganainy) #3

@J-N-K I am trying to build my own rule engine on top of openhab

0 Likes

(Jan N. Klug) #4

That’s quite a lot of effort. What is missing in the existing rule engines? Wouldn’t it be better to improve those? Otherwise you need to follow the instructions for setting up a OpenHAB core IDE.

1 Like

(Mohamed H. Elganainy) #5

This is the Whole Concept i am trying to do the post is written by me How to start developing on top of openHab + Developing My Own Rule Engine if you would kindly see it. And secondly, where can I get the instructions on setting up OpenHab Core IDE??

0 Likes

(Jan N. Klug) #6

Basically you can follow the instructions here https://www.openhab.org/docs/developer/ and don‘t clone openhab2-addons but openhab-core.

1 Like

(Mohamed H. Elganainy) #7

@J-N-K i did and i followed the steps and i cloned openhab-demo and openhab-core and build them with maven. imported them to eclipse and now i am stuck i dont know how would i run the core and see the openhab interface or is there something missing yet?

0 Likes

(David Graeff) #8

The demo repo is not using karaf.
Did you click “run OSGi” in the bndrun file interface?

0 Likes

(Mohamed H. Elganainy) #9

@David_Graeff I ran the app.bndrun and run OSGi button but is gave me failed to parse javaserverlet error and i want to know how when running the demo it gets related to the openhab-core??

0 Likes

(Massimo) #10

Hi @MHGanainy
try the new version of the (temporary) guide for setting up the Eclipse IDE here:
it works for me on Windows10.

[https://github.com/mvalla/openhab-docs/blob/master/developers/index.md]

0 Likes

(Mohamed H. Elganainy) #11

Thank you for your response but i think this is for developing the addons but in fact i want to develop on the openhab-core

0 Likes