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 10th August 2007, 08:03 PM
wutbox's Avatar
wutbox Offline
Registered User
 
Join Date: Jul 2007
Location: Running F7
Posts: 47
use Sun's Java, not GNU?

I need to use Sun's version of Java, but when I run the command 'java -version' I get this:

Code:
$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.1.2 20070502 (Red Hat 4.1.2-12)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

How do I set the Sun version as default? any help would be so much appreciated.
Thanks
__________________
Carrots!? Why is it always carrots? I didn't even eat carrots!
Reply With Quote
  #2  
Old 10th August 2007, 08:23 PM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
You need to configure alternatives
There is a easy to follow guide located here:
Just pay attention to the version of Java you have installed.

Controlling Java through 'alternatives'

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #3  
Old 10th August 2007, 08:46 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,617
I'd uninstall all the gcj stuff, it's completely unnecessary and can only cause problems when you need real Java. Just uninstall all the packages with gcj in their name, using the --nodeps option since it'll be listed as a dependency for OpenOffice. Then go into the OpenOffice settings and tell it to use the Sun JRE/JDK that you installed. I've done this on several machines running Fedora, never had a problem. One of these days the Sun JRE/JDK will be included with Fedora so all this mess can be avoided.
Reply With Quote
Reply

Tags
gnu, java, sun

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
FC5 and Sun's Java mastahnke Using Fedora 7 30th March 2006 05:37 AM
Sun's java SDK on FC2 x86_64 mhec Using Fedora 11 1st September 2004 06:33 AM


Current GMT-time: 11:25 (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