You are not logged in.

#1 2009-06-09 23:59:59

mapster
Member
Registered: 2009-06-03
Posts: 31

Eclipse, replace openjdk6 with jre

I've just installed eclipse, which depends on openjdk6, so I removed jre so that i wouldn't get broken packages or some other problem. Openjdk isn't good enough for normal use (web applets etc.), so I want to install jre instead. How do I remove openjdk without "breaking" anything and install jre?

output when trying to remove openjdk6:

error: failed to prepare transaction (could not satisfy dependencies)
:: eclipse: requires java-environment>=6

Offline

#2 2009-06-10 00:25:40

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Eclipse, replace openjdk6 with jre

pacman -Rd openjdk6
pacman -S jre jdk (note eclipse needs both...)

Offline

#3 2009-06-10 00:35:22

mapster
Member
Registered: 2009-06-03
Posts: 31

Re: Eclipse, replace openjdk6 with jre

nice! that did the trick smile thank you!

Maybe the remove dependency command should be mentioned in the wiki... (Couldn't find it on the Pacman page)

Last edited by mapster (2009-06-10 00:36:41)

Offline

#4 2009-06-10 02:25:11

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Eclipse, replace openjdk6 with jre

It is definitely in the man page and probably should not be recommended for general use...  I am happy with it not being in the wiki.

Offline

#5 2009-06-10 06:56:38

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Eclipse, replace openjdk6 with jre

And it's not a "remove dependency command". As recommended, read the man page.

Offline

#6 2011-09-05 01:09:45

ioos
Member
Registered: 2011-01-25
Posts: 125

Re: Eclipse, replace openjdk6 with jre

Sorry to bump an old thread, but these commands aren't working for me now. I'm trying to replace openjdk6 with jre. When I run:

pacman -Rd openjdk6

I get:

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)

According to the man page shouldn't that be "Remove" with "Skip dependency version checks"? Is there a better way to install jre without uninstalling everything else first?

Offline

#7 2011-09-05 01:25:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Eclipse, replace openjdk6 with jre

ioos wrote:

Sorry to bump an old thread, but these commands aren't working for me now. I'm trying to replace openjdk6 with jre. When I run:

pacman -Rd openjdk6

I get:

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)

According to the man page shouldn't that be "Remove" with "Skip dependency version checks"? Is there a better way to install jre without uninstalling everything else first?

Read the man page again, '-Rd' is not enough. It says "Skip dependency version checks" so it doesn't care if you're using version 3 or 6 - that's different from skipping dependency check altogether.

Last edited by karol (2011-09-05 01:29:17)

Offline

#8 2011-09-05 02:19:48

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Eclipse, replace openjdk6 with jre

Hello ioos, a command in this thread no longer applies and will not work. That's what you get for reading a two year old thread and not doing your homework. wink
Please read: https://wiki.archlinux.org/index.php/Fo … Bumping.27
Closing.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB