You are not logged in.
Hi all,
I have a PKGBUILD file with this dependency
depends=('java-runtime>=1.11')
and I need to replace it with Oracle's version, like this
depends=('jdk>=1.11')
But jdk is from AUR so that won't work.
How could I do that?
Last edited by EgidioCaprino (2021-12-28 12:54:56)
Offline
Why?
If you install jdk/jre from the AUR, then those will be provide the java-runtime dependency and be accepted as well.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
It's because my package requires some library which is in Oracle's JDK only.
Offline
Then specify jre or jdk as the dependency. The user then has to install the jre and/or jdk from the AUR. You can add AUR packages as dependencies, you just need to build and then install them manually as well.
In your tool you'll have to choose the specific java version and cannot rely on the system default, though, e.g. something like this in a startup shell script.
export JAVA_HOME=jdk-install-dir
export PATH=$JAVA_HOME/bin:$PATH
Edit: What are the missing classes anyways? If it is javafx, then there is java-openjfx for the open source variant.
Last edited by progandy (2021-12-24 18:00:44)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Actually, I'm getting this error
Unable to find SWT jar for Linux : amd64
I'm not sure it's related to the JDK variant.
Offline
Missing dependency? https://aur.archlinux.org/packages/swt/
Offline
Thank you
Offline