Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to install Java in the folder /java/bin so that

 which java

should return

/java/bin/java

I am using ubuntu 11.04. Currently it shows after default installation

  #which java
    /usr/bin/java

Is there any alternative way?

share|improve this question

migrated from stackoverflow.com May 11 '12 at 8:29

This question came from our site for professional and enthusiast programmers.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.