Solved

path for jdk

Posted on 2000-02-22
2
266 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
[X]
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
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
unable to put logic for reading multiple repo in a single file 4 70
android secure ftp 3 72
rsyslog raw message 4 37
postfix start error! 9 53
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
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…

749 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