문제

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