Comments (8)
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.
@BClark09 the second part of the issue is something worth looking into, right?
from openhab-linuxpkg.
Ah yes, but this should be resolved for 2.2 and it's current snapshots from openhab/openhab-distro#496
from openhab-linuxpkg.
Hmmm if I'm not mistaken, that is yes for die: command not
but no for type: java: not found
from openhab-linuxpkg.
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.
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.
But it looks like they also agree with you now ;)
Yay 🤗
from openhab-linuxpkg.
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)
- upgrading the package doesn't restart running openHAB instance HOT 2
- .deb packages incompatible with DPKG >1.20
- Support DEFAULT, DELETE and DELETEDIR update commands from update.lst
- openHAB3 Post installation process fails HOT 14
- files (re-)installation HOT 1
- Upgrade to OH3 doesn't work on Ubuntu Server 20.04.1 LTS HOT 7
- OpenHab3 breaks openhab-cli HOT 2
- PackageKit error: downloadSubjectPublicKey?username=openhab is not a public key HOT 1
- org.apache.karaf.shell.cfg HOT 3
- Config patching (new feature) HOT 2
- Gentoo and OpenRC support
- support apt-listchanges HOT 2
- Upgrade ops4j pax-logging-* libraries to 2.0.11 HOT 5
- SHA-1 GPG Keys not supported by all distros any longer
- Suggest Java 17 package installation for openHAB 4 HOT 3
- openhab-3.4.4-2.noarch.rpm - Error: GPG check FAILED HOT 8
- Cannot install older openhab versions from repository HOT 5
- Upgrade to bookworm may break openhab HOT 1
- debian postinst script removes config file /etc/init.d/openhab HOT 3
- dnf gpg check fails on version 4.0.4-1 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openhab-linuxpkg.