wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes Running Java on Redhat 9 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Running Java on Redhat 9" Watch "Running Java on Redhat 9" New topic

Running Java on Redhat 9

miceal oconnor

Joined: Nov 07, 2001
Posts: 29
Hello One & All,
I've just installed Redhat v9.0 on PC. no issues there.
I don't really know a lot about Linux (yet) but I want to get
programming in Java asap.
Does Java come with Redhat 9, if so where is it installed?
If it doesn't come with Redhat 9 how can I install it?
My end goal is to install Tomcat so I can write & test Servlets
& JSP's etc..
Thanks a million - Michael.
Paul Coates

Joined: Aug 08, 2003
Posts: 5
No Redhat does not come with the Sun SDK (if that is what you are looking for). You will have to go to http://java.sun.com/j2se/1.4.2/download.html and download the SDK rpm (Linux RPM in self-extracting file). After you install the rpm java will be located in /usr/java/j2sdk1.4.2
Paul Coates

Joined: Aug 08, 2003
Posts: 5
Just to clarify in the previous post. I am talking about the download version of RedHat 9. I don't know if the retail version comes with the Sun Java SDK.
miceal oconnor

Joined: Nov 07, 2001
Posts: 29
The java sdk1.4 is now installed & running. Tomcat is installed & running
but when I installed j2ee & tried to run a Helloworld servlet it couldn't find the HTTPservlet class. I'm sure I haven't configured something?
Has anybody got any suggestions??
Thx - Michael.
Rob Jones

Joined: Aug 14, 2003
Posts: 4
You'll need to add Java to the path by editing the profile file:
1. chmod a+x /etc/profile
2. vi /etc/profile
3. update pathmunge such that it points to /usr/java/j2SDK1.4.1_03/Bin
"or what ever your java/bin is"
4. re login
It is sorta covered in the JavaRanch Style Guide.
subject: Running Java on Redhat 9
Similar Threads
hard problem: uninstall java in redhat 9
Yahoo Instant Messenger on Suse
how to set java env in linux???
Setting the Env. variable in RedHat 9
Check package pdksh-5.2.xx.x.