سؤال

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?

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top