You are not logged in.

#1 2011-10-04 17:12:47

ryanklee
Member
Registered: 2011-06-09
Posts: 33

libreoffice, openjdk vs. java [SOLVED]

I've got Java7 installed rather than openjdk. The libreoffice meta package seems to want to install openjdk. Is there any way to get it to use Java instead?

Last edited by ryanklee (2011-10-04 18:24:54)

Offline

#2 2011-10-04 17:44:55

HeSaid
Member
From: southwest Florida USA
Registered: 2010-07-02
Posts: 53

Re: libreoffice, openjdk vs. java [SOLVED]


Registered Linux User 159445.

Offline

#3 2011-10-04 17:48:33

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

Re: libreoffice, openjdk vs. java [SOLVED]

HeSaid wrote:

I doubt it, java and libreoffice thing is pretty new.


@ryanklee
Do you mean

:: There are 2 providers available for java-environment:
:: Repository testing
   1) jdk7-openjdk
:: Repository extra
   2) openjdk6

Enter a number (default=1): 

?

Last edited by karol (2011-10-04 17:51:10)

Offline

#4 2011-10-04 18:04:11

ryanklee
Member
Registered: 2011-06-09
Posts: 33

Re: libreoffice, openjdk vs. java [SOLVED]

karol wrote:
HeSaid wrote:

I doubt it, java and libreoffice thing is pretty new.


@ryanklee
Do you mean

:: There are 2 providers available for java-environment:
:: Repository testing
   1) jdk7-openjdk
:: Repository extra
   2) openjdk6

Enter a number (default=1): 

?

This is the output I am referring to:

[ryanklee@kleebox .ec2]$ sudo clyde -S libreoffice
:: libreoffice package not found, searching for group...
:: group libreoffice (including ignored packages):
    libreoffice-base  libreoffice-calc  libreoffice-common  
   libreoffice-draw  libreoffice-gnome  libreoffice-impress  
   libreoffice-kde4  libreoffice-math  libreoffice-sdk  
   libreoffice-sdk-doc  libreoffice-writer  
:: Install whole content? [Y/n] 
resolving dependencies...
looking for inter-conflicts...
:: openjdk6 and jre are in conflict (java-runtime). Remove jre? [Y/n] n
error: failed to prepare transaction (conflicting dependencies)
:: openjdk6: conflicts with jre (java-runtime)

Offline

#5 2011-10-04 18:13:10

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

Re: libreoffice, openjdk vs. java [SOLVED]

Have you tried removing jre just for the installation and putting it back (and removing openjdk6) later?

Offline

#6 2011-10-04 18:17:02

ryanklee
Member
Registered: 2011-06-09
Posts: 33

Re: libreoffice, openjdk vs. java [SOLVED]

karol wrote:

Have you tried removing jre just for the installation and putting it back (and removing openjdk6) later?

No, I haven't. It did occur to me that that might work. However, it seems a little hack-ish and something that ought to be able to be avoided. So, if there's another, saner way, I suppose I'd like to know what it is.

Offline

#7 2011-10-04 18:21:57

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

Re: libreoffice, openjdk vs. java [SOLVED]

You can have a look at https://aur.archlinux.org/packages.php?ID=50317 and maybe modify it a bit to suit your needs.

Official packages can't depend on AUR packages, so you're pretty much on your own wrt to Oracle Java.

Offline

#8 2011-10-04 18:24:36

ryanklee
Member
Registered: 2011-06-09
Posts: 33

Re: libreoffice, openjdk vs. java [SOLVED]

karol wrote:

Official packages can't depend on AUR packages, so you're pretty much on your own wrt to Oracle Java.

Oh, that makes much more sense. I didn't recall that Java7 was in the AUR, though it should have. Your previously given solution seems best in the light of this condition. Thanks.

Last edited by ryanklee (2011-10-04 18:25:12)

Offline

#9 2011-10-04 18:28:11

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

Re: libreoffice, openjdk vs. java [SOLVED]

ryanklee wrote:
karol wrote:

Official packages can't depend on AUR packages, so you're pretty much on your own wrt to Oracle Java.

Oh, that makes much more sense. I didn't recall that Java7 was in the AUR, though it should have. Your previously given solution seems best in the light of this condition. Thanks.

Some info about java situation from Arch ML:
http://mailman.archlinux.org/pipermail/ … 21296.html
http://mailman.archlinux.org/pipermail/ … 21671.html

Last edited by karol (2011-10-04 18:28:55)

Offline

#10 2011-10-04 19:31:56

ryanklee
Member
Registered: 2011-06-09
Posts: 33

Re: libreoffice, openjdk vs. java [SOLVED]

For the record: removing jre, installing openjdk6 and then re-installing jre after the installation of the libreoffice meta package worked only if after the libreoffice installation libreoffice-sdk and libreoffice-sdk-doc were also removed, both of which are dependent on openjdk6.

I considered using fake-java package you linked to above, but I'd like to know when these dependencies are an issue and deal with them ad-hoc.

Last edited by ryanklee (2011-10-04 19:33:03)

Offline

#11 2012-04-03 11:42:39

Kenni
Member
From: Denmark
Registered: 2007-01-25
Posts: 64

Re: libreoffice, openjdk vs. java [SOLVED]

ryanklee wrote:

For the record: removing jre, installing openjdk6 and then re-installing jre after the installation of the libreoffice meta package worked only if after the libreoffice installation libreoffice-sdk and libreoffice-sdk-doc were also removed, both of which are dependent on openjdk6.

I just hit the same issue...I had (Oracle) JRE installed and pacman refused to install libreoffice without replacing jre with one of the free options. Instead of uninstalling jre and then reinstalling it again, just avoid installing the sdk-packages (eg. instead of accepting the default full list of packages in the "libreoffice" group, accept everything except "libreoffice-sdk" and "libreoffice-sdk-doc". Then pacman will leave your Java-installation as it is.

[user@home ~]# pacman -S libreoffice
:: There are 12 members in group libreoffice:
:: Repository extra
   1) libreoffice-base  2) libreoffice-calc  3) libreoffice-common  4) libreoffice-draw  5) libreoffice-gnome  6) libreoffice-impress  7) libreoffice-kde4  8) libreoffice-math
   9) libreoffice-postgresql-connector  10) libreoffice-sdk  11) libreoffice-sdk-doc  12) libreoffice-writer

Enter a selection (default=all): 1 2 3 4 5 6 7 8 9 12   

Offline

Board footer

Powered by FluxBB