Welcome!
What process did you follow?
Many who run openHAB on a Pi use the openHABian image which is an easy install based on Raspbian.
What version of Java did you install?
It does not and the openjdk8 in the package repo is not rerecommended on the Pi due to performance issues. Here is the documentation you should follow for minimal issues.
Thanks for your help, but in this moment I have software installed in the raspberry that I don’t want to lost it, so when I install the openHABian , my raspbian will be delete , right? for this reason I need install openHab like an application better, if is possible
You can give it a try installing openHABian on your system.
Just follow Other Linux Systems (add openHABian just like any other software) from the link Bruce posted before.
After that you can start openhabian-config to get into the openHABian configuration tool. At point 40 openHAB related you can install java.
You can also use the unattended installation, see link below
Should do on Raspbian if you didn’t change too much and will install Java as well.
Then again it’s not the recommended way. You will always be on your own when you’re in need of help (because noone knows what you have done on your OS before you installed openHABian).
Your best option is to install another, dedicated Pi. Second best is to deploy the openHABian image and (re)install your SW on top.