Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

 which java

should return


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

  #which java

Is there any alternative way?

share|improve this question

migrated from May 11 '12 at 8:29

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

Your Answer


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

Browse other questions tagged or ask your own question.