Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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'm installing a debian server.

The server needs a specific version of java, so I'm installing from the self-extracting file.

But I'm new to the linux world and I want to put the jre in a place that will make sense to me when i'm better acquainted with the folder structure. where should I put it?

share|improve this question
up vote 4 down vote accepted

You could install it under /opt. That would keep it separate from the system directories where a Debian supplied version of Java might be installed.

share|improve this answer
under opt, with its version information, such jdk1.6.0_13, and then a simlinks to whatever cleaner names you want for it. You might even add simlinks to /etc/aternatives for executables – GreenKiwi May 21 '09 at 16:25

Yes /opt would also allow you to be more aware of what is interacting with it and avoid any unintentional upgrades or alterations to the installation.

share|improve this answer

This is how we layout out sdk's

/opt/java/sdk/current -> /opt/java/sdk/sun/i386/current
/opt/java/sdk/sun/i386/current -> /opt/java/sdk/sun/i386/1.6
/opt/java/sdk/sun/i386/1.6 -> /opt/java/sdk/sun/i386/jdk1.6.0_13

and so on.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.