[aur-general] 'java-runtime' dependency not working as expected
Hi there. Sudokuki has 'java-runtime' [1] as dependency and I have 'jre7' [2] (from AUR) installed (which 'provides' java-runtime=7)... When I try to compile sudokuki, makepkg warns me: :: jre7-openjdk and jre7 are in conflict (java-runtime). Remove jre7? [y/N] I don't want to install jre7-openjdk [3], as I need jre7. Why "java-runtime" is not working as expected? How can I make jre7 be recognized as java-runtime ? Thanks in advance, Rafael Ferreira [1] https://aur.archlinux.org/packages/sudokuki/ [2] https://aur.archlinux.org/packages/jre7/ [3] https://www.archlinux.org/packages/extra/x86_64/jre7-openjdk/
:: jre7-openjdk and jre7 are in conflict (java-runtime). Remove jre7? [y/N]
JRE != JDK. You need JDK7 to compile Java software.
makedepends=('java-environment')
And it tries to install OpenJDK for you, but it conflicts with your JRE. Install Oracle JDK if you don't want OpenJDK. https://aur.archlinux.org/packages/jdk7/ -- Kind regards, Damian Nowak StratusHost www.AtlasHost.eu
Rafael Ferreira wrote:
Hi there.
Sudokuki has 'java-runtime' [1] as dependency and I have 'jre7' [2] (from AUR) installed (which 'provides' java-runtime=7)... When I try to compile sudokuki, makepkg warns me:
:: jre7-openjdk and jre7 are in conflict (java-runtime). Remove jre7? :: [y/N]
I don't want to install jre7-openjdk [3], as I need jre7. Why "java-runtime" is not working as expected? How can I make jre7 be recognized as java-runtime ?
Because it wants java-environment as makedependency, so it tries to install jdk7-openjdk, which in turn depends on jre7-openjdk. You need to install jdk7 manually (which also provides java-environment) before compiling.
It make sense... As soon as I installed jdk7 (replacing jre7), it compiled just fine. Thanks Nowaker and Antonio Rojas 2014-04-23 13:58 GMT-03:00 Antonio Rojas <nqn1976list@gmail.com>:
Rafael Ferreira wrote:
Hi there.
Sudokuki has 'java-runtime' [1] as dependency and I have 'jre7' [2] (from AUR) installed (which 'provides' java-runtime=7)... When I try to compile sudokuki, makepkg warns me:
:: jre7-openjdk and jre7 are in conflict (java-runtime). Remove jre7? :: [y/N]
I don't want to install jre7-openjdk [3], as I need jre7. Why "java-runtime" is not working as expected? How can I make jre7 be recognized as java-runtime ?
Because it wants java-environment as makedependency, so it tries to install jdk7-openjdk, which in turn depends on jre7-openjdk. You need to install jdk7 manually (which also provides java-environment) before compiling.
participants (3)
-
Antonio Rojas
-
Nowaker
-
Rafael Ferreira