You are not logged in.

#1 2011-08-13 02:25:38

okaylol
Member
Registered: 2011-07-20
Posts: 13

[SOLVED]JDK installation error

I am beginning to develop Android applications, so I am installing jdk6 from the AUR via Yaourt. I am getting this error:

/usr/share/applications/java-policy-settings.desktop exists in both 'jre' and 'jdk6'

It's probably something simple, but I can't figure it out..

Thank you in advance.

Last edited by okaylol (2011-08-13 02:49:48)

Offline

#2 2011-08-13 02:32:25

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]JDK installation error

jre is java 1.7, while jdk6 is 1.6. You can't have both installed...

Offline

#3 2011-08-13 02:35:21

okaylol
Member
Registered: 2011-07-20
Posts: 13

Re: [SOLVED]JDK installation error

A little better description of what I did:

$ sudo pacman -U /tmp/yaourt-tmp-luke/jdk6-6u26-1-x86_64.pkg.tar.xz 
resolving dependencies...
looking for inter-conflicts...
:: jre and openjdk6 are in conflict (java-runtime). Remove openjdk6? [y/N] y

Remove (1): openjdk6-6.b22_1.10.3-1

Total Removed Size:   116.94 MB

Targets (2): jre-7-3  jdk6-6u26-1

Total Download Size:    0.00 MB
Total Installed Size:   228.84 MB

Proceed with installation? [Y/n] Y
(2/2) checking package integrity                   [######################] 100%
(2/2) checking for file conflicts                  [######################] 100%
error: failed to commit transaction (conflicting files)
/usr/share/applications/java-policy-settings.desktop exists in both 'jre' and 'jdk6'

Offline

#4 2011-08-13 02:36:17

okaylol
Member
Registered: 2011-07-20
Posts: 13

Re: [SOLVED]JDK installation error

Isn't one the runtime environment and the other the development kit? When I try to install jdk6 it is pulling the jre in as a dependency...

Offline

#5 2011-08-13 02:49:28

okaylol
Member
Registered: 2011-07-20
Posts: 13

Re: [SOLVED]JDK installation error

I installed it manually from the AUR and everything works fine. I'll have to let the maintainer know that he has some weird dependency issues.

Offline

#6 2011-08-13 04:00:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]JDK installation error

Moving to AUR & PKGBUILDS...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB