Java Virtual Machine
Rick Stevens
rstevens at vitalstream.com
Sat Mar 20 00:35:09 UTC 2004
Guy Rouillier wrote:
> On Fri, 19 Mar 2004 13:38:51 -0800
> Rick Stevens <rstevens at vitalstream.com> wrote:
>
>>Paths are set up in several places. The global paths (those that are
>>set up by default) are in /etc/profile. In there, you'll see a line
>>like:
>> pathmunge /usr/X11R6/bin after
>>
>>Add a line just after it:
>>
>> pathmung /usr/java/j2sdk1.4.2_03 after
>>
>>and everyone will have it tacked onto their paths as the last item.
>
>
> One observation about getting Java into your path. The way I've typically seen Java installed on Unix systems is to put a particular version directly under usr, then create a symlink "java" to it. The RPM installer will place the version *under* /usr/java, so from within /usr you can do this:
>
> mv java/j2sdk1.4.2_03 .
> rmdir java
> ln -s java/j2sdk1.4.2_03 java
>
> Then just put /usr/java/bin in your path. The reason for doing this is so that all your Java code is now version independent; you can install a new version, change the symlink, and carry on.
Good point, Guy. Thanks for the tip.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- You know you've landed gear-up when it takes full power to taxi. -
- -- Chuck Yeager -
----------------------------------------------------------------------
More information about the Redhat-install-list
mailing list