The quickest and easiest way to determine which version of Java™ is running on your system is to open up a command prompt (Start ▸ All Programs ▸ Accessories ▸ Command Prompt on Windows® 7) or terminal window (Applications ▸ Accessories ▸ Terminal on Ubuntu Linux) and enter the following command:
You should see something similar to the following output on the screen:
java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
The first line is the one we are interested in. In this example, the Java version is 1.6.0_22, also known as JDK6 update 22.
If you don't see the output above, you may need to add the Java executable to your PATH environment variable.
On Windows, the path to java.exe is usually one of the following:
32-bit Systems: C:\Program Files\Java\jre6\bin
64-bit Systems: C:\Program Files (x86)\Java\jre6\bin
Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.