You are not logged in.

#1 2009-06-25 18:22:45

lang2
Member
Registered: 2006-02-10
Posts: 386

jre + eclipse = conflict

Hi,

I have jre installed and working fine. Now I want to try out eclipse. But 'pacman -S eclipse' tells me:

resolving dependencies...
warning: provider package was selected (openjdk6 provides java-environment)
looking for inter-conflicts...
:: openjdk6 conflicts with jre. Remove jre? [Y/n]

Is it possible to avoid replacing jre with openjdk? I know it's recommended by Arch but I had problem with it.

Thanks,

Offline

#2 2009-06-25 18:33:27

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: jre + eclipse = conflict

just use pacman -S eclipse jdk

openjdk6 provides both java-environment and java-runtime. the error is there becase pacman tries first to install openjdk to ensure java-environment but want to remove jre becase is conflicting.

Last edited by wonder (2009-06-25 18:35:11)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2009-06-25 18:34:38

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: jre + eclipse = conflict

That seems to be working. Thanks. But why?

Offline

#4 2009-06-25 18:35:57

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: jre + eclipse = conflict

i've edited the first post.


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2009-07-15 00:38:13

chesterfork
Member
Registered: 2009-06-15
Posts: 31

Re: jre + eclipse = conflict

thanks for the solution..

Offline

#6 2010-01-27 11:35:30

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: jre + eclipse = conflict

For saving new posts
I installed eclipse and openjdk6 and java is installed on my box but now i was trying to install a .bin and that doesn't find java.

This application requires a Java Run Time Environment (JRE)
          to run. Searching for one on your computer was not successful.
          Please use the command line switch -is:javahome to specify 
          a valid JRE.  For more help use the option -is:help.

now:

echo $PATH & whereis java
[1] 18366
/bin:/usr/bin:/sbin:/usr/sbin:/opt/kde/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin
java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz

JAVA INSTALLED BUT NOT IN THE PATH
but i can compile java application without a problem and normally eclipse works fine..
And when i try to install jre:

pacman -S jre
resolving dependencies...
looking for inter-conflicts...
:: jre conflicts with openjdk6. Remove openjdk6? [Y/n] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jre: conflicts with openjdk6

I think i need to export java, but how? should I do something with .bashrc?

Thanks

Last edited by r0b0t (2010-01-27 11:42:30)

Offline

#7 2010-01-27 12:02:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: jre + eclipse = conflict

JAVA INSTALLED BUT NOT IN THE PATH

relogin


Give what you have. To someone, it may be better than you dare to think.

Offline

#8 2010-01-28 08:31:37

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: jre + eclipse = conflict

As for that i have installed eclipse after installing arch (time ago) , so the problem is not fixed with logging in, or restarting the system..

Offline

#9 2010-01-29 10:00:40

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: jre + eclipse = conflict

The problem is still present , any idea about fixing it?

Offline

#10 2010-02-17 11:34:46

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: jre + eclipse = conflict

Solved, we must remove openjdk6 & saxon & eclipse & all requisites, than pacman -S jre jdk and install all from the begining.

Offline

Board footer

Powered by FluxBB