Hey!
Property 'java.version' value is that of the context. In this
case it is the servlet engine context. A servlet engine can
therefore have its own version of jdk. At least that's
how WebSphere works. I can't comment on others.
If you run a java application from the command prompt the
command prompt context jdk is the value of 'java.verson'.
Typically the command prompt will be the one from the
registry, if you used Sun's jdk intaller for Windows.
These comments may only apply to Windows. I just don't
know about other OSs. You don't mention what OS you
are using.
It's easy enough to find out. Run this code in a servlet
and then run it in an application at the command prompt
session.
java.util.Properties props = System.getProperties();
java.util.Enumeration enum = props.propertyNames();
while (enum.hasMoreElements()) {
String name = (String) enum.nextElement();
System.out.println("\n"+name+" is "+props.getProperty(name));
}
Ramma lamma ding dong.
Sans adieu,
Danny Rubis
Koshy Asish wrote:
> Is the version thus obtained is taken from the registry.
> Its possible that more than one version of java is intalled.
> In that case which is the version obtained
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html