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 4th January 2005, 09:33 AM
harlequin's Avatar
harlequin Offline
Registered User
 
Join Date: Dec 2004
Location: Dunedin, NZ
Age: 28
Posts: 73
Java master link

Code:
libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions.  libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
I'm running j2sdk 1.4.2_06 on fedora core 3, if that helps.

Every time I compile/run a java program from the commandline I get the above. I know that I could edit the sheel script to remove the text, but I figure that it's probably better if I actually fixed it.

My question, what do I need to do to fix it?
Reply With Quote
  #2  
Old 4th January 2005, 11:19 AM
_the_mighty_'s Avatar
_the_mighty_ Offline
Registered User
 
Join Date: Nov 2004
Posts: 32
Hello harlequin,

I had the same problem and I could solve it:

1. Download J2SE from http://java.sun.com/j2se/1.5.0/download-netbeans.html
2. Install it.
3. In the file /etc/bashrc set
Code:
export JAVA_HOME=/usr/java/jdk1.5.0
4. Now type in the console
Code:
. /etc/bashrc
5. Now we have to overwrite the FC placeholders:
Code:
ln -sf /usr/java/jdk1.5.0/bin/java /etc/alternatives/java
Code:
ln -sf /usr/java/jdk1.5.0/bin/javac /etc/alternatives/javac
6. Now it should work. Otherwise post the error. You can also set your new java as a plugin for your browser. If you are using firefox, do the following:
Code:
ln -s /usr/java/jdk1.5.0/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so 
  /usr/lib/firefox-1.0/plugins/libjavaplugin_oji.so
Have fun!

mighty
__________________
La vie est dure sans confiture.
Reply With Quote
  #3  
Old 5th January 2005, 04:02 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
You might want to uninstall gcj first. And there's a much easier way of handling the alternatives rather than hacking on it and losing your hacks when you update software: http://fedoraforum.org/forum/showthread.php?t=26505
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #4  
Old 5th January 2005, 05:23 AM
harlequin's Avatar
harlequin Offline
Registered User
 
Join Date: Dec 2004
Location: Dunedin, NZ
Age: 28
Posts: 73
Cheers guys, my bad, should have looked in the "How To" first.
Reply With Quote
  #5  
Old 6th January 2005, 04:51 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
Twenty lashes with a wet noodle! And no cookies for bedtime tonight, as well!
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #6  
Old 6th January 2005, 05:19 AM
harlequin's Avatar
harlequin Offline
Registered User
 
Join Date: Dec 2004
Location: Dunedin, NZ
Age: 28
Posts: 73
Not the wet noodle. NOOoooooo!
Aww no cookies either... man.
Reply With Quote
Reply

Tags
java, link, master

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
Link Master and Master Mono Volume Controls FC7 w/ GNOME rollingsr Hardware & Laptops 2 7th June 2007 07:04 PM
Firefox java link broken Samhain Using Fedora 1 13th October 2006 05:02 PM
Java & Symbolic Link Mac-N-Linux Using Fedora 0 10th July 2006 01:33 PM
Java symbolic link problems King P Using Fedora 1 1st November 2005 04:18 AM
java, symbolic link, what do ya mean its not a directory? kb1clx Using Fedora 3 31st May 2004 06:08 PM


Current GMT-time: 00:32 (Monday, 20-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