Meaningless Drivel is fun!
The moose likes Beginning Java and the fly likes Installing JAVA on Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Installing JAVA on Linux" Watch "Installing JAVA on Linux" New topic

Installing JAVA on Linux

sunil mirani
Ranch Hand

Joined: Jan 24, 2001
Posts: 36
Hi Guys .. I am new LINUX ..
i got linux installed on my system .. and now i want to work on java .. i downloded the .bin file and i installed it it created a prm file which i further installed .. i moved the jdk dir to /local.. but nothing seems to work ..
when i go the the jdk1.3/bin and try executing the java command it does not .. and when it type sh java it executes .. but only within the bin ..
how do i make this thing work can any one help .. plz ..
can i uninstall the jdk and re install it .. i dont know how to do it .. if any one could send me a link where i could find step by step installation guide that would be great more thing i am using redhat ..
Thanks guys ..
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Why did you move the jdk Direcory? It's easiest just to leave it in the default directory that the RPM install set which is usr\java\jdk1.3
Yes, you can uninstall the JDK. The easiest way is to use the RPM manager inside one of the X Windows GUI's. KDE, GNOME, etc. You can select the package, then click an uninstall button.
Once you got it installed to your liking, you must specify the path and CLASSPATH. In your root directory or home directory (depending on how you log in) there is a file called .bashrc (this of course is if you are in the bsh shell). There will be a path statement in that file. YOu need to add the JDK/BIN to that path. Then set the classpath to your working java directory (Wherever you will be compiling your code).
This needs to be in the LINUX Forum.
Happy Coding,
Gregg Bolinger
[This message has been edited by Gregg Bolinger (edited December 21, 2001).]

GenRocket - Experts at Building Test Data
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

I agree.
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
OK - I will move it.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Installing JAVA on Linux
It's not a secret anymore!