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 > JDK installation
Connect with Facebook
 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
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-01-2008   #1 (permalink)
Just Joined!
 
Join Date: Sep 2008
Posts: 9
JDK installation

I have downloaded jdk6u7-linux-rpm.bin and jdk6u7-linux.bin


how do i install these i have to run java programs. and do i need to set classpath and path please explain in detail because i m new to fedora9
madangopal is offline  


Reply With Quote
Old 10-01-2008   #2 (permalink)
Linux Newbie
 
tiersen's Avatar
 
Join Date: May 2008
Location: Tokyo,Japan
Posts: 226
Hi
try the following
Code:
# chmod a+x jdk6u7-linux-rpm.bin
# ./jdk6u7-linux-rpm.bin
__________________
"If we lived in a world where the better technology won out, then no doubt everybody and their aunt Fanny would be using GNU/Linux"
Sam Varghese
tiersen is offline   Reply With Quote
Old 10-01-2008   #3 (permalink)
Just Joined!
 
sanjaykatiyar's Avatar
 
Join Date: Mar 2007
Location: Bangalore
Posts: 97
Quote:
Originally Posted by tiersen View Post
Hi
try the following
Code:
# chmod a+x jdk6u7-linux-rpm.bin
# ./jdk6u7-linux-rpm.bin
It will install java in the folder from where you have executed this command.

Then you can set the path and java home in the .bash_profile file.

PATH=/usr/local/jdk-xxx/bin: (Rest of the entry)

JAVA_HOME=/usr/local/jdk-xxx
export JAVA_HOME

After saving the .bash_profile file execute this file:
$ source .bash_profile
sanjaykatiyar is offline   Reply With Quote
Old 10-01-2008   #4 (permalink)
Linux Newbie
 
tiersen's Avatar
 
Join Date: May 2008
Location: Tokyo,Japan
Posts: 226
Quote:
Originally Posted by sanjaykatiyar View Post
It will install java in the folder from where you have executed this command.

Then you can set the path and java home in the .bash_profile file.

PATH=/usr/local/jdk-xxx/bin: (Rest of the entry)

JAVA_HOME=/usr/local/jdk-xxx
export JAVA_HOME

After saving the .bash_profile file execute this file:
$ source .bash_profile
Thank you sanjaykatiyar. You're right.
Another way to do the stuff is to change the working directory using the ch command before proceeding
__________________
"If we lived in a world where the better technology won out, then no doubt everybody and their aunt Fanny would be using GNU/Linux"
Sam Varghese
tiersen 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

Safe, Secure Backup


All times are GMT. The time now is 05:42 PM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2