Solved

installing java on linux

Posted on 2001-06-18
5
211 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS CLI issues with Tags 3 63
AWS CLI - Instances, Volumes & Tagging 2 73
Can't See Site After DNS Resolved 7 47
Use CRON to save a copy of an open file 1 17
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now