Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

installing java on linux

Posted on 2001-06-18
5
213 Views
Last Modified: 2010-04-20
everytime I start linux , I need to type

export PATH=/usr/java/jdk1.3.1/bin:$PATH

inorder for me to run java command
Is there way to eliminating that step, If there is, how do you do it?
0
Comment
Question by:kuichan2
5 Comments
 
LVL 3

Expert Comment

by:superschlonz
ID: 6204571
Add this line to /etc/profile
0
 

Author Comment

by:kuichan2
ID: 6204594
where am i adding this line? .cshrc? What is that do?
0
 
LVL 3

Accepted Solution

by:
superschlonz earned 1 total points
ID: 6204673
If you are using bash you can add this line at the end of the file
/etc/profile (that's not in your home directory, the first slash means
absolute path) You can also add it to your .profile in your home
directory but then the PATH is set only for you, not for other users
on the system.

If you are using csh then the files are /etc/csh.cshrc and .cshrc
int the home directory.

It's long time ago since I last used csh but I belive to remember
that you would have to write it this way for csh:
setenv PATH "$PATH:/usr/java/jdk1.3.1/bin"
0
 

Expert Comment

by:CleanupPing
ID: 9089298
kuichan2:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9502677
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is to:

Accept superschlonz's Comments as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Paul
EE Cleanup Volunteer
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
wipe a usb using python 5 64
How to make a Bash alias that takes parameters 5 72
how to install java on RHEL image on EC2 4 40
Samba Question 11 74
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question