 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

24th May 2011, 02:44 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 67

|
|
|
How can avoid OpenJDK?
Hello,
Can I install LibreOffice without installing OpenJDK package?
Thanks!
salu2...
masch...
|

24th May 2011, 02:48 PM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
|
Re: How can avoid OpenJDK?
You sure can, but that would entail installing from source or some not endorsed repo, I'm afraid. Anyway, AFAIK OpenJDK does not get in the way of Sunacle Java. Any specific issues?
|

24th May 2011, 02:55 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 67

|
|
|
Re: How can avoid OpenJDK?
Thank for you reply. No, I do not have any particular issue, but since I work with severals Java framework I do not have installed OpenJDK virtual machine, sometimes I get some issues on those framework with OpenJDK that work fine on Oracle JDK virtual machine.
So, since I am not installing OpenJDK virtual machine I cannot install LibreOffice from Fedora Repository?
|

24th May 2011, 03:43 PM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
|
Re: How can avoid OpenJDK?
I am afraid not
Code:
[root@localhost ~]# yum deplist openoffice.org-core|grep jdk
provider: java-1.6.0-openjdk.i686 1:1.6.0.0-44.1.9.1.fc14
This is for openoffice on F14, but I guess it's going to be the same for LibreOffice on F15. Anyway, you really should not experience any issues having both OpenJDK and Sunacle Java installed on the same system. I too use frameworks like Eclipse and JBoss with Sunacle Java and they are working fine. In fact, I keep OpenJDK only to support Fedora's OpenOffice. If you follow the instructions here or use DM's FedoraPlus you shouldn't experience clashes between the two versions of Java
Last edited by giulix; 24th May 2011 at 03:47 PM.
|

24th May 2011, 03:49 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 67

|
|
|
Re: How can avoid OpenJDK?
A few month ago I had some issue with it, I will try it again...
Thank you for your help1
|

24th May 2011, 06:21 PM
|
 |
Fedora QA Community Monkey
|
|
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 3,763

|
|
|
Re: How can avoid OpenJDK?
well, libreoffice-core doesn't specify a specific java package. It has dependencies on various things provided by java:
libjawt.so()(64bit)
libjawt.so(SUNWprivate_1.1)(64bit)
libjvmaccessgcc3.so.3()(64bit)
libjvmaccessgcc3.so.3(UDK_3.1)(64bit)
libjvmaccessgcc3.so.3(UDK_3.4)(64bit)
libjvmfwk.so.3()(64bit)
libjvmfwk.so.3(UDK_3_0_0)(64bit)
are the ones I can see. So if you had an RPM package of a different Java implementation which provided all those things, libreoffice would be happy with it. If you install the other Java through non-RPM means, or if it doesn't provide the same capabilities as the Fedora OpenJDK package, though, it won't satisfy the dependencies.
|

25th May 2011, 01:08 AM
|
 |
Registered User
|
|
Join Date: Nov 2006
Location: Detroit
Posts: 4,616

|
|
|
Re: How can avoid OpenJDK?
Quote:
Originally Posted by masch
Can I install LibreOffice without installing OpenJDK package
|
Yes. Just install LibreOffice, including OpenJDK that get pulled in as a dependency, then use rpm to force the removal of OpenJDK:
Code:
rpm -e --nodeps java-1.6.0-openjdk
I've done this before and never had a problem. The Sun/Oracle JDK works perfectly as a replacement if you have that installed. When updates occur, which will reinstall OpenJDK, just repeat the above procedure.
|

25th May 2011, 01:48 AM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449

|
|
|
Re: How can avoid OpenJDK?
There's no reason why you can't have many Java JDK's or JRE's installed at the same time. If openjdk causes a problem you don't have to use it, just use the alternatives tool to point your system java to the 'good' one like Sun/Oracle 1.6.0.25. You can configure LibreOffice to use a particular JDK.
|

27th May 2011, 07:37 AM
|
|
Registered User
|
|
Join Date: Jul 2006
Posts: 14

|
|
|
Re: How can avoid OpenJDK?
Assuming Oracle java is installed in /usr/java/default, and you want to use that, but still have openjdk installed:
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000
/usr/sbin/alternatives --install /usr/bin/javac javac /usr/java/default/bin/javac 20000
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 01:31 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|