2

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?

3 Answers 3

4

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.

1
  • 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, 2009 at 16:25
1

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.

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .