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?

link|improve this question

feedback

3 Answers

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.

link|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
feedback

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.

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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