I usually don't go for the RPM based distros like FC, and SuSE, but this
should work. Alternatively, this is how I generally do it (very similar
to Alex's solution):
-Download the appropriate product in a "binary, self-extracting" form
-Extract it, and, as root, place the extracted file tree somewhere you
won't forget. /opt is a good place, as is /usr/local
-Create a symlink to the extracted java folder (usually named something
like j2sdk1.4.2_05, or something) and name the symlink "java".
Basically, if you put it in /opt, do this:
cd /opt
ln -s j2sdk1.4.2_05 java
-Once you have that, make sure you put the path to the java/bin folder
in your path. For example, if you only want a certain user to have
these rights, put the following line in your .bashrc file (in your home
directory):
PATH=$PATH:/opt/java/bin
export $PATH
-Alternatively, if you want all users to have access to it, put it in
/etc/profile instead.
If this isn't clear, ask away, and I'll try to clarify.
Lloyd
Alex Esplin wrote:
On 9/27/05, Larry Landen <[EMAIL PROTECTED]> wrote:
That's amazing!! (a sense of confidence when something goes right) Thanks
for the grub and the kwrite (and KDE) help. Now I just have to get java
working on linux.
As far as getting java working goes, try this.
Download the rpm file from sun.java.com, and use their installation
instructions (the ones on the download page). Keep track of where it
is installed.
add this line to your .bashrc:
export PATH=$PATH:/your/path/tojava/jdk1.5.0_04/bin
this adds the bin directory of the jdk to your path environment
variable so you can type:
javac whatever.java instead of /your/path/to/java/jdk1.5/bin/javac whatever.java
that should get you all of the functionality you need to program in java.
--
Alex Esplin
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/newbies
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/newbies