Re: j2sdk install for rh9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Harlan Feinstein wrote:

Does anyone have any pointers about doing this install? I've not installed the Java SDK before, and when I install the RPM version:

j2sdk-1_4_2_03-linux-i586.rpm

I do a `which java` or `which javac` and get nothing. I've tried rebooting, using 'rehash', other stuff like that, and it looks like it's not installing it or something.

RPM definitely knows that it's installed:

  > rpm -q j2sdk
  j2sdk-1.4.2_03-fcs

Any ideas/recommendations? Thanks in advance! :-)


I generally create a file in /etc/profile.d called "java.sh" that contains something like this:

   export JAVA_HOME=/usr/java/j2sdk_1.4.2_03
   PATH=$PATH:$JAVA_HOME/bin

JAVA_HOME is handy for other things which is why I set it. You can get fancier by looking for the j2sdk directory, but you only have to edit it once every release.

jch


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux