Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th May 2011, 02:44 PM
masch Offline
Registered User
 
Join Date: Dec 2007
Posts: 67
windows_xp_2003chrome
How can avoid OpenJDK?

Hello,

Can I install LibreOffice without installing OpenJDK package?

Thanks!
salu2...
masch...
Reply With Quote
  #2  
Old 24th May 2011, 02:48 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
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?
Reply With Quote
  #3  
Old 24th May 2011, 02:55 PM
masch Offline
Registered User
 
Join Date: Dec 2007
Posts: 67
windows_xp_2003chrome
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?
Reply With Quote
  #4  
Old 24th May 2011, 03:43 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
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.
Reply With Quote
  #5  
Old 24th May 2011, 03:49 PM
masch Offline
Registered User
 
Join Date: Dec 2007
Posts: 67
windows_xp_2003chrome
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
Reply With Quote
  #6  
Old 24th May 2011, 06:21 PM
AdamW's Avatar
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 3,763
linuxfirefox
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.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
Reply With Quote
  #7  
Old 25th May 2011, 01:08 AM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,616
linuxfedorafirefox
Re: How can avoid OpenJDK?

Quote:
Originally Posted by masch View Post
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.
Reply With Quote
  #8  
Old 25th May 2011, 01:48 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
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.
Reply With Quote
  #9  
Old 27th May 2011, 07:37 AM
ogj Offline
Registered User
 
Join Date: Jul 2006
Posts: 14
linuxchrome
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
Reply With Quote
Reply

Tags
avoid, openjdk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access the java-1.6.0-openjdk-javadoc.i686 : OpenJDK API Documentation? vefoda Using Fedora 2 9th April 2011 04:46 AM
How to delete OpenJDK? javaer Using Fedora 0 22nd September 2010 06:51 AM
java-1.6.0-openjdk - do I need it? Palooka Using Fedora 2 7th August 2009 06:00 PM
openjdk daniel_I_l Using Fedora 2 8th April 2009 06:07 AM
Where is OpenJdk stored? LChalupa Using Fedora 1 13th October 2008 04:43 PM


Current GMT-time: 01:31 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat