Question

I recently updated from Oracle Java 7 Update 45 to Oracle Java 7 Update 51. Both the Terminal command (java -version) and the Java Control Panel reflect the updated version, Java Update 51. However, the following line of code -

String ver = System.getProperty("java.version");

returns Java 7 Update 45, as it did before the update. Specifically: 1.7.0_45

I was expecting it to reflect Java 7 Update 51.

What might be happening here?

Était-ce utile?

La solution

You need to add the new Java version to the NetBeans Platform Manager, and set it as the default if you wish.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top