How do I detect the OpenJDK in my applet (System Properties)?
Posted
by Stefan Kendall
on Stack Overflow
See other posts from Stack Overflow
or by Stefan Kendall
Published on 2009-10-14T18:17:29Z
Indexed on
2010/04/09
7:33 UTC
Read the original article
Hit count: 331
How can I determine if my client is running OpenJDK with a web plugin? I've tried java.version and the rest of the properties listed here.
Running java -version
from the terminal works fine, but if I went this route, java would have to be on the user's path, which I don't know if I can trust entirely. Is there any other way to see the string given by java -version programmatically, without shelling out to the command line or terminal?
Right now, when I run System.getProperties().getProperty("java.version")
, I get Sun Microsystems Inc.
!
© Stack Overflow or respective owner