Giter Site home page Giter Site logo

Comments (6)

dvanherbergen avatar dvanherbergen commented on May 23, 2024

This message is generated by the karaf start shell script. I don't think we should modify that one.
Isn't setting JAVA_HOME a good practice anyway?

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

Isn't setting JAVA_HOME a good practice anyway?

Well, I came across it because I simply setup Raspian, installed the JDK through apt-get and then openHAB. Since the JDK install did not set JAVA_HOME this was missing and I guess I won't be the only one coming across it. And if a missing JAVA_HOME has no consequence, why bother?

from openhab-distro.

dvanherbergen avatar dvanherbergen commented on May 23, 2024

I guess we should ask the Karaf guys why "results may vary" 😄

from openhab-distro.

maggu2810 avatar maggu2810 commented on May 23, 2024

IIRC JAVA_HOME was used in the past by various software component to locate the path of the JDK (and so the bundled JRE). Some linux distributions uses it, some not.
The simplest workaround if you want to get rid of this message till monday is IMHO to copy locateJava function (e.g. of the bin/karaf script) to the start.sh file (same for .bat) and set JAVA_HOME the same way it is done there if it is not set already.

No consequence is not granted as long as you do not know every line of code if someone is using that environment variable.

Just my two cents if you need a workaround to remove this message...

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

On my RasPi, I now see the following at startup:

pi@raspberrypi:~/oh $ ./start.sh 
Launching the openHAB runtime...
java is /usr/bin/java
/usr/bin/java

This does not look like the final solution yet :-)

from openhab-distro.

dvanherbergen avatar dvanherbergen commented on May 23, 2024

oops. Looks like I somehow left ome debug info in there :-)
A fix is on its way..

from openhab-distro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.