Solved

path for jdk

Posted on 2000-02-22
2
263 Views
Last Modified: 2012-05-04
I want to change path for java, (I have RH 6)
now another java i exe when "which jav" is run, but I want to change it to jdk,
how do I write a script for this. and in which
file do I do it.
(I have tried several lightly modified in different files but non seams to do the trick)

/k
0
Comment
Question by:k061198
2 Comments
 
LVL 2

Accepted Solution

by:
Reinier earned 50 total points
ID: 2546580
In general the order of directories in your PATH environment variable ("echo $PATH" to view it) determines which java is run when you type jav. So change that order and you should be set.

If that isn't possible a simple
 
alias jav='/path/to/the/right/jav'

in your ~/.bashrc will also do the trick.
0
 

Author Comment

by:k061198
ID: 2553107
After a while I got it
thanks
/k
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Weird Samba Connectivity Issue... 7 40
Can't See Site After DNS Resolved 7 55
Rate limit for DNS queries 7 75
VMware Workstation 12 Player 16 75
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 …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

803 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