FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I followed the following directions exactly, with a few modifications for the newer version of Java but I still couldn't get it to work. Can someone please tell me what I'm doing wring?
OK, here you go...........
Reconfiguring the default Java configuration for Red Hat / Fedora
This is done as root or equivalent.
First remove /var/lib/alternatives/java file by typing;
rm /var/lib/alternatives/java
When asked press the 'y' key,
Now to create the new (corrected) alternatives file for java type
Might i suggest just downloading the one from the sun site, and install the RPM ? Or the .src.bin .. and install it that way, this way is long, and probably unneeded.
This assumes that your java is in the /usr/java directory - that is correct only if you used the java.rpm.bin - if you used the java.bin instead (which you need to extract and move around yourself), it is not unless you explicityly placed the extracted folder it under /usr/java.
Quote:
export JAVA_HOME="/usr/java/jre1.6.0/bin"
Why did you set JAVA_HOME twice? I'm sure this is awfully confusing to the system.
The only reason I did it this way was because this was the only information I was able to find on the internet. I actually downloaded the RPM version and installed it but after I did it I followed the instructions again because that's what someone told me to do. Do I need to delete everything I did and start over or can I just download the RPM again and install it? I tried to re-install the RPM yesterday but Fedora told me there was nothing to do. I really don't want to re-install Fedora again because of this.
It shouldn't matter, you can simply keep your own version instead of getting rpm.bin - the main thing is you make sure that your JAVA_HOME is pointing to the exact location of your java folder. Where did you place it? That's where it should point to.
I also noticed you were using it like JAVA_HOME=/.../.../jdk/bin - which is wrong: the /bin part needs to be dropped. The only place you would actually add the "/bin" part is in the update-alternatives" commands.
I followed your directions and made sure that the Java.sh file was pointing to the right directory. It still doesn't work. I followed the directions on www.fedorasolved.org. It still didn't work. I believe this problem is something simple but I can't seem to get enough information out there for someone to help me so I've decided to ask for help over the phone. If anyone is willing to talk me through this I will reimburse them for the call. It's a temp phone I bought so it won't work after two or three day. 662-523-5678.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.