-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[raspberry] openhabian-config symlink aarch32 w/ arm #805
Comments
And another nice help would be an entry in the "update-alternatives" for finding the jdk easier. |
openHABian is not meant to be a basis for anything to run on top other that what it brings, and Unifi is not part of that. |
What about taking Unifi out of the focus and just do a proper registration of the jdk in the OS with update-alternatives, like all the other jdk and jre and implement a small fix for other java tools like jsvc? |
I know what you're after but this is not how it's supposed to work. There is no need in openHABian for update-alternatives to work because the installed java works with everything that is part of openHABian, and openHABian will not support anything else to install on top like Unifi or whatever other java app which would need a working update-alternatives.
Pull Request. It means to do the coding yourself and offer the result to us for integration into openHABian. |
Hey all, @meckiemac Regarding Unifi and Java: The different java distributions and ways they can be set up are manifold and the minor differences are painful to deal with. Adding the arm symlink for |
Hi all, I noticed this was somewhat discussed on the community forums. I'm not sure why the paths jsvc looks at are different to what is installed. But I agree that we'd need to be careful with adding symlinks like this, it'd need to be tested thoroughly first (e.g. does it break other architectures?). IMO the current JDK install process is getting rather complicated already. I also wonder, that when we inevitably transition to Java 11+ that we can take the chance to simplify the process and return back to openJDK (perhaps through an AdoptOpenJDK install). We would need to make sure that the issues that @kaikreuzer points out are resolved first though. AFAIK, openJDK-11 contains a JIT compiler. |
@BClark09 let's not discuss Java options in different places and in a mixed round with users. |
After spending some time, I think it should be separated into 2 problems. One is when Zulu gets installed it should also be registered right as an available Jdk version. The importance to conflict not with other jdk installs can set to a low value. |
Thanks all. Java 11: I think we can agree that we will stay with Zulu now and whatever might change because of openHAB3 is far away. jsvc: What I get from the discussion is that we are not certain whether the addition might bring unwanted side effects and that it is not essential to a wider user base. |
It is registered:
You can run |
"won't fix" means not to add symlinks as requested BUT I assume #723 is your real problem and #819 will fix it so I've left this issue open and merging #819 will auto-close it. |
Hi,
I have a raspberry with unifi and openhab running. Unifi requires Java 1.8 too, but original oracle or the open-jdk. With some testing I got unifi also running with the zulu java installed by openhabian-config. It runs since 2 month without any issues.
Unifi uses jsvc to start the java processes. Jsvc checks on unusual places for java libraries. With symlinking the 2 "aarch32" directories to "arm" within the zulu jdk jsvc is now happy with the zulu jdk.
Is it possible to add the 2 symlinks in the install process of the jdk?
The text was updated successfully, but these errors were encountered: