Is JRE all I need?

I hope this question isn't too basic for the forums but I haven't found an answer after poking around.

I have a linux (redhat7) webserver running Apache. I just installed Jakarta Tomcat and MySql today. I am now installing the java environment and I'm wondering if I only need to install the JRE (1.3.1).

I plan to write the code on a windows pc and then ftp over the class files. Am I on the right path or do I need to install the full sdk?

Thx

Marty

[493 byte] By [mghaught] at [2007-9-26 2:42:37]
# 1
Yes and no! If you're just running Java programms on this machine the JRE is all you need. But you also have to put all the class files and/or libraries (JARs) you used during the development on the machine and include them in the class file.
mneumi at 2007-6-29 10:19:59 > top of Java-index,Desktop,Runtime Environment...
# 2

Hi, I have a similar setup, Redhat Linux 6.2, Tomcat, and Postgresql on my Linux machine

and I develop on a Windows machine. One thing to take notice of!

If you plan on using JSP pages, you will also have to install the tools.jar on the Linux machine

and include it in the PATH.

tool.jar contains the javac executable, which is not included in the JRE, but which

is needed to run JSP's.

Now maybe you can help me with something. I am using the Runtime class in a

Servlet to run a shell script on the linux machine. Before I had the JDK installed

on the linux machine and the Servlet ran the script just fine. When I took the JDK off and installed just the JRE, the script will no longer run correctly. I get a exit value of 255.

Do you know if you need anything else besides the JRE to be able to use the Runtime()

class? Also, there are a couple of .jar files included in the JRE, but the only one I

have included in the PATH is jre.jar ( and tools.jar of course :-) ). I wonder what those

other .jar files are for?

Thanks, and good luck

Bill

bjames3 at 2007-6-29 10:19:59 > top of Java-index,Desktop,Runtime Environment...