Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > first time installing java on FC4

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-08-2005   #1 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 7
first time installing java on FC4

ok...i've been pretty much raised on windows, so forgive me if i have no idea how to manually install programs in general. To start with, i wanted to install the Java Runtime Environment. I downloaded the rpm from the java website. I untarred the file, changed permissions and let it extract. Here is what showed up next:

Code:
[root@localhost Desktop]# ls
jre-1_5_0_04-linux-i586.rpm                jre-1_5_0_04-linux-i586.bin
so there is the bin file i downloaded and the rpm i extracted. so how do i go about installing it from here? ive tried other tutorials and they dont seem to work (i may even have old java stuff that i need to uninstall before i try installing again).

edit

ok so what i want to do first is make sure there is no other java packages installed. that way it will be easier for people to help me install java. remember, i am coming from years of windows, so im used to install/uninstall wizards, meaning i may need the code line for line. thanks!
magnumPI is offline  


Reply With Quote
Old 07-09-2005   #2 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
If I remember correctly
Code:
rpm -q java
will tell you whether or not it is installed.
You'll want to do:
Code:
rpm -iv java-x-x.rpm
to install it.
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 07-11-2005   #3 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 7
ok here's my current problem:

I followed the installation guide for the Java Runtime Environment for version 1.5.0.04. But when i type "java -version" from the root, I get "version 1.4.2.08." I know 1.5.0.04 is installed because from the menu bar in fedora i can enter the java control panel. fedora says java 1.5 is installed and enabled, but i have a feeling that 1.4.2 is still linked ok connected somewhere (whatever the lingo is in linux). I was raised on windows, so all help that is linux is appreciated.
magnumPI is offline   Reply With Quote
Old 07-14-2005   #4 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 17
what distro are you running? If running Fedora Core 4 try using a "yum" command. This is a program that finds all the programs needed and compiles them itself. I found it very helpful (especially for a linux newb like me). This is only available (so I'm told) on FC4, yet other commands are used for different distros that do basically the same thing. Type "yum install javacc" while superuser, and it should install all available updates. I'm not sure if this is completely accurate, and I'm sure somebody will let me know otherwise. Sorry if this is of no help to you.
compulsiveguile is offline   Reply With Quote
Old 07-14-2005   #5 (permalink)
Linux Guru
 
kkubasik's Avatar
 
Join Date: Mar 2004
Location: Lat: 39:03:51N Lon: 77:14:37W
Posts: 2,397
Send a message via AIM to kkubasik
it seems most likely that the java executable is not in your PATH variable, try typing in the complete path.

/usr/java/sun-jdk-1.4.2/java

or something of the like

locate java
or
slocate java

will be of help, then either symlink from your /usr/bin to the directory its actualy in, or add the java directory to the PATH (recommened)
PATH = $PATH:/path/to/java; export PATH
__________________
Avoid the Gates of Hell. Use Linux
A Penny for your Thoughts

Formerly Known as qub333
kkubasik is offline   Reply With Quote
Old 07-14-2005   #6 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 7
i tried compulsiveguile's "yum install javacc." The good news is that something was downloaded and installed. There was even a display message saying that old files were being deleted. The bad news is that java apps still wont show up on the browser. What would be nice is if i can uninstall all the java packages i tried to install in the first place. As far as i know, these are the 3 packages i tried to install:

jre1.5.0_04-linux.rpm.bin
j2re1.4.2_01-linux.bin
yum install javacc

I'm also very confused as to what java files I can uninstall. /usr/java was a manually made folder in which jre1.5.0 is located. so far thats the one i want working but is not. jre1.4.2 is the package showing up as the installed package when i type in 'java -version'. and javacc...well i believe it got installed into /usr/bin. Java applets till wont show up on websites and Im pretty sure my company cant run java applets from other comps to this one either. Please help. I'll play around a little more with it. Keep those suggestions coming!
magnumPI is offline   Reply With Quote
Old 07-14-2005   #7 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 7
solved!

solved! I did a little digging in the tutorial section and found this site:

http://www.fedoranews.org/contributo...fc3_note/#Java

as far as i know, this works on Fedora Core 4 (which I am currently on). Thanks for the help everyone!
magnumPI is offline   Reply With Quote
Old 07-15-2005   #8 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 17
Glad things worked out for you
compulsiveguile is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 07:56 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2