Giter Site home page Giter Site logo

Comments (8)

BClark09 avatar BClark09 commented on June 19, 2024

Hi @RREE, did you see my reply to the comment:

Please note that for the later versions of openHAB, apt will now recommend Java.

We cannot depend on it via a package manager as there are many different ways of including it. For example, via manual extraction, or by installing either or multiples of Zulu/Oracle/open JDK.

from openhab-linuxpkg.

ThomDietrich avatar ThomDietrich commented on June 19, 2024

@BClark09 the second part of the issue is something worth looking into, right?

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 19, 2024

Ah yes, but this should be resolved for 2.2 and it's current snapshots from openhab/openhab-distro#496

from openhab-linuxpkg.

ThomDietrich avatar ThomDietrich commented on June 19, 2024

Hmmm if I'm not mistaken, that is yes for die: command not but no for type: java: not found

https://github.com/openhab/openhab-distro/blob/master/distributions/openhab/src/main/resources/bin/setenv#L182

from openhab-linuxpkg.

ThomDietrich avatar ThomDietrich commented on June 19, 2024

The whole block is a bit weird anyhow. How about this:

command -v java >/dev/null 2>&1 || die "java command not found"
JAVA=$(command -v java)

Just tested on a system with and without java, seems to work just fine

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 19, 2024

The function is written from KARAF. But it looks like they also agree with you now ;) The version of KARAF that openHAB is on now, has changed the java search function and this file is included with the latest version of openHAB. (It also slowly getting to being POSIX compatible now!)

I asked @kaikreuzer about it previously here, but thinking about it, we should probably update setenv and remove the duplicated functions that are already set in inc. Since inc is called first, I'm assuming the definitions in setenv are useless. WDYT?

from openhab-linuxpkg.

ThomDietrich avatar ThomDietrich commented on June 19, 2024

But it looks like they also agree with you now ;)

Yay 🤗

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 19, 2024

Hi @RREE, the issues you describe should be at least addressed in the snapshots.

Whilst the package does not depend on java installation package, it will still suggest installing it during installation if it does not detect one.

journalctl -u openhab2, ./start.sh or openhab-cli start should also correctly report these problems now.

I'm going to close this issue, but please feel free to reopen it if you feel something else needs to be addressed.

from openhab-linuxpkg.

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.