HEY YOU!!!, Our records indicate that you have never posted to our site before! Why not make your first post today by saying hello to our community in our new people forums. To access all the good good stuff you need to post, post, and post more.


Support Webrats Forum with your Subscription. Only $5.95 per month!
Adult lounge Access • Private Messaging • GAMES •
Please click here for more details • Please click here to subscribe
Go Back   WR > Community > Computers and Programming
User Name
Password
Register Help Desk Music Uploads Live Cams Arcade Upgrade Account Mark Forums Read
Reply
 
Thread Tools
Old 10-17-2005, 03:33 AM   #1
minion
whore
 
 
Join Date: Jan 2005
Location: Az
Posts: 119/0.08
Threads: 15
MALE
installing java for fedora4

click on one of our sponsors! OR REMOVE ADS
For some reason I can't seem to get java to install on my computer since I loaded fedora4 after using windowsxp up to this point. I followed the install instructions from the site where I downloaded it, but it keeps giving me errors when I type the commands into the terminal. Anyone ever try to install java in linux before or have any ideas how I could get it to work? Thanks in advance.
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl | quote |
Sponsored Links
REMOVE ADS
Old 10-17-2005, 08:51 AM   #2
skept
The Original Aussie.
 
 
Join Date: Mar 2005
Location: Aussie
Posts: 4,485/3.29
Threads: 49
Gold Member
MALE
Re: installing java for fedora4

Hrrrm.

Fendora Core - doesn't that just come with an RPM find facility - so that you can just download the rpm and it will automatically configure it for you to work?
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl | quote |
Old 10-17-2005, 10:43 AM   #3
Gork
whore
 
 
Join Date: Sep 2005
Location: California, finally
Posts: 30/0.03
Threads: 1
United States MALE
Re: installing java for fedora4

Quote:
Originally Posted by http://stanton-finley.net/fedora_core_4_installation_notes.html#Java
Java:

* The official Fedora Core 4 Release Notes state: "Fedora Core 4 users are advised not to use the Java RPM provided by Sun. It contains Provides that conflict with names used in packages provided as part of Fedora Core 4. Because of this, Sun Java might disappear from an installed system during package upgrade operations. Fedora Core 4 users should use either the RPM from jpackage.org or manually install the Sun Java tarball into /opt. Sun Java 1.5+ is recommended for stability purposes." In order to accomplish this open Firefox, go to http://java.sun.com/j2se/1.5.0/download.jsp, click on Download JRE 5.0 Update 5, click the radio button to accept the license agreement, under "Linux Platform - J2SE(TM) Runtime Environment 5.0 Update 5" click on "Linux self-extracting file", to download jre-1_5_0_05-linux-i586.bin (save to disk). This should save the file to your home folder. If it saves the file to your desktop instead go to your desktop and drag the file into your "Home" folder. (Left mouse click on the file and drag it on top of your "Home" folder while holding the left mouse button down. Then release the mouse button.)

* You should run up2date or "yum update" as root as described above to update your kernel and then reboot your machine before you proceed with this step, then open a terminal. Type:

su

Hit enter. Type your root password. Hit enter. Type:

mv *.bin /opt

Hit enter. Type:

cd /opt

Hit enter. Type:

chmod +x *-linux-i586.bin

Hit enter. Type:

./*.bin

Hit enter. Hold the enter key down until the yes/no line appears to allow you to agree to the license agreement. Type "yes" and hit enter. Wait for the installation to complete. Type:

rm *.bin

Hit enter. Type "y" and hit enter. Type:

su -

Hit enter. This gives you root privileges and also puts you in the /root directory. Type:

ln -s /opt/jre1.5.0_05/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so

(Note that by default Firefox looks in /usr/lib/mozilla/plugins for its plugins. If you have trouble with your plugins in Firefox you could substitute "firefox-1.0.7" or your most recent firefox directory name in place of "mozilla" in the above command.) Hit enter. Close the terminal. Restart Firefox to enable the java plugin. You could go to http://www.dslreports.com/stest?loc=97 and click the start button to test your java plugin installation.

* If you wish to run Java applications such as JAlbum or Azureus for bittorrent and you have installed the Sun J2SE JRE as described above, open a terminal and type:

su -

Hit enter. Type your root password. Hit enter. Type:

gedit /etc/profile.d/java.sh

Hit enter. In gedit type these lines:

export J2RE_HOME=/opt/jre1.5.0_05
export PATH=$J2RE_HOME/bin:$PATH

Be sure to enter a carriage return after these lines. Click on the "save" icon in gedit and exit gedit. In the terminal (which should still be open) type:

source /etc/profile.d/java.sh

Hit enter. Type:

which java

Hit enter. You should see:

/opt/jre1.5.0_05/bin/java

Type:

/usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5.0_05/bin/java 2

Hit enter. Type:

/usr/sbin/alternatives --config java

Hit enter. You should see:

There are 2 programs which provide 'java'.

Selection Command
-----------------------------------------------

*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /opt/jre1.5.0_05/bin/java

Enter to keep the current selection[+], or type selection number:

Type:

2

Hit enter. Type:

/usr/sbin/alternatives --display java

Hit enter. You should see:

java - status is manual.
link currently points to /opt/jre1.5.0_05/bin/java
...

You should now be able to install and run Java applications.


I had the same problem... and that worked for me. Being a linux idiot, I had no clue what was going on. Good luck...
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl | quote |
Old 10-22-2005, 03:31 AM   #4
minion
whore
 
 
Join Date: Jan 2005
Location: Az
Posts: 119/0.08
Threads: 15
MALE
Re: installing java for fedora4

thanks :D i'll have to try it and see if it works

Me ^.^
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Spurl | quote |
Reply

WR > Community > Computers and Programming
Reload this Page installing java for fedora4
Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Powered by Waldo 12345678910 1213 14 15 Copyright © 2000-2005 Jelsoft Enterprises Limited.
Page generated in 0.55275989 seconds (90.58% PHP - 9.42% MySQL) with 11 queries
206.212.255.30 Message Boards and Forums Directory