dev@glassfish.java.net

What JDK installation am I using?

From: vince kraemer <Vince.Kraemer_at_Sun.COM>
Date: Tue, 22 Aug 2006 16:43:40 -0700

Is there a way to determine which JDK installation the server is using?

I know this is kind of knowable by parsing AS_JAVA...

Is there an AMX method that exposes this to clients?

Or even the 'java -version' info?

Use Case:

The NetBeans IDE may be running against a JDK 6 JVM. The server may be
running against that JVM or it may be executing against a J2SE 5 JVM.
When the server is running against a mismatched JVM revision, NetBeans
wants to prevent Bad Things from happening. This api would be
instrumental in providing that level of service to our users.

vbk