Solved

installing java on linux

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Guacamole cut and paste issue 3 75
Linux Mint 18 31 91
Oracle 10g standard edition server with 4 processors 3 55
Quickest way to query Windows Event ID from a Linux Device 3 34
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 …
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

821 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