Solved

path for jdk

Posted on 2000-02-22
2
267 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apache LDAP Authentication 20 72
LINUX Field Separators 7 79
Understanding ping command in Ubuntu 5 68
ifconfig related commands 6 27
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…
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 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.
Suggested Courses

710 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