San Lewy
San Lewy

Reputation: 136

Java version discrepancy?

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?

Upvotes: 0

Views: 95

Answers (1)

user207421
user207421

Reputation: 310957

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

Upvotes: 3

Related Questions