1

Is it possible to install a JDK on Linux (specifically RH 7.x) so that it exists in only a specific user's space?

Sathyajith Bhat
  • 286
  • 1
  • 5
  • 23
IVR Avenger
  • 325
  • 1
  • 5
  • 16

2 Answers2

6

Download the JDK unpack, add "bin/" to your $PATH and change/add $CLASSPATH, $JAVAHOME if needed.

Ex:

$ cd
$ mkdir -p java/src/
$ mv jdk-6u12-linux-i586.bin java/src/
$ cd java/src/
$ chmod ug+x jdk-6-linux.bin 
$ ./jdk-6-linux.bin
$ cp -R jdk1.6.0_12/* ../
$ cd
$ echo "PATH=\$HOME/java/bin/:\$PATH" >> .bash_profile
$ source .bash_profile

And your'e done..

rkthkr
  • 8,618
  • 28
  • 38
0

What's stopping you just using discretionary access control (i.e. users and groups) to achieve this?

Dan Gravell
  • 253
  • 3
  • 9