Simple Java Question

so on my openfire server console it shows my java as the following:

Java Version: 1.6.0_18 Sun Microsystems Inc. – Java HotSpot™ Client VM

However on the windows 2k3 server itself i have Java 1.6.30 installed. How do i go about ensuring i am running the correct version of java? and if my java needs to be updated based on what the server display is saying, how do i go about doing that?

Or do i NOT need the java that is installed on the server?

You may have installed an Openfire version which contains a JRE. So Openfire will likely use this JRE and you can update or delete the JRE which is installed on the server.