Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running Java on Redhat 9

 
miceal oconnor
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OkiDoki,
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
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic