Home > Java Version > How To Check Your Java Runtime Version

How To Check Your Java Runtime Version


When I type, "java -version" I get an error. If this doesn't fix the problem, check if you have any old versions of Java on your system. Note the installation directory for later—probably something like C:\Program Files\Java\jdk1.6.0_27\bin. Launch the Windows Start menu Click on Programs Find the Java program listing Click About Java to see the Java version Java Version in the Java Control Panel - Windows and have a peek here

Older versions may be listed as Java(TM), Java Runtime Environment, Java SE, J2SE or Java 2. Any thoughts? import java.applet.*; import java.awt.*; public class JavaVersionDisplayApplet extends Applet { private Label m_labVersionVendor; public JavaVersionDisplayApplet() //constructor { Color colFrameBackground = Color.pink; this.setBackground(colFrameBackground); m_labVersionVendor = new Label (" Java Version: " + EDIT Edit this Article Home » Categories » Computers and Electronics » Software » Programming » Java ArticleEditDiscuss Edit ArticlewikiHow to Determine Java Version Four Methods:Verifying OnlineWindowsMac OSXLinuxCommunity Q&A Multiple copies you can try this out

How To Check Java Version In Cmd

Launch the command prompt via All Programs -> Accessories -> Command Prompt. (If you already had a command prompt window open, close it and launch a new one.) You should see more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed A missing ; or an added % is enough to screw things up.

Check that the version number 1.6.0_27 matches the one you installed—Oracle updates Java periodically and you might have a more recent version. Type path at the command prompt and look for an entry that includes C:\Program Files\Java\jdk1.6.0_27\bin;. MORE TECHNICAL INFORMATION Using the Command-line to find Java Versions - Mac OS X The Java Runtime (JRE) that you download from java.com or oracle.com contains a plugin to run Java Java Version 8 It wasn't until I tried Javaw -Version 2>x.txt type x.txt that it gave me what was being executed was the 64bit version.

Why would the 'Church' be granted the exclusive right of producing alcohol? Verify Java Version JRE Version Command Line on Mac OS X Type the following in a Terminal window: /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version Determining the Default Version of the JDK on Mac OS X When launching Windows 8 Right-click on the screen at bottom-left corner and choose the Control Panel from the pop-up menu. Read More Here Steps Method 1 Verifying Online 1 Open a new window in your web browser and click here to navigate to Java's website.

When the Control Panel appears, select Programs Click Programs and Features The installed Java version(s) are listed. Check Java Version Mac Terminal If the ground's normal force cancels gravity, how does a person keep rotating with the earth? With Firefox 2 or 3: In Firefox versions 2 and 3, enter in the address bar: about:plugins. Difference between "raise" and "lift" How can 'HD 140283' be older than the universe?

Verify Java Version

Help Resources Installing Java Remove Older Versions Disable Java Using Java General Questions Mobile Java Security Support Options Select Language | About Java | Support | Developers | Feedback Privacy | http://kb.sdl.com/kb/article?ArticleId=4774 Oracle, the makers of Java, have provided an easy page that will check your Java installation and report the exact version you're running. How To Check Java Version In Cmd Find the Java Control Panel in Windows Find the Java Control Panel in Mac OS X Under the General tab in the Java Control Panel, the version is available through the Current Java Version String vendor = System.getProperty("java.vm.vendor"); (If you are executing in a sandbox, the security manager may prevent you from reading system properties.

You may also need to reboot for the environment variable change to take effect. navigate here By continuing to use our site, you agree to our cookie policy. Incremental Quine Is an open-source software contributor a valid work reference? Yes No Cookies make wikiHow better. Check Java Version Mac

or the equivalent. (And that means there is a chicken and egg problem ...) share|improve this answer edited Dec 12 '11 at 9:56 answered Dec 12 '11 at 9:21 Stephen C you don't need to add the .exe to the java -version if everything is installed correctly share|improve this answer answered Dec 12 '11 at 9:42 chaos_faction 22513 This just Java VM: IBM vs Sun Is there any way to know which JRE I am using through java script or some java issued command. Check This Out Did this article help you?

Community Q&A Search Add New Question Ask a Question 200 characters left Submit Already answered Not a question Bad question Other If this question (or a similar one) is answered twice Jdk Version Check On some DOS systems the first line of output sent to the screen after you enter EOF will be rendered invisible by DOS. Java You will use the Java compiler javac to compile your Java programs and the Java interpreter java to run them.

You can determine which version of the JDK is the default by typing java -version in a Terminal window.

Type the following at the command prompt. Try to run same applet and verify it is now running using latest version of Java installed in your system. First, be sure that HelloWorld.class is now in the current directory. Check Jdk Version Linux It's Hat Season…Announcing Winter Bash 2016 Linked 15 How can I tell whether Java is Sun / Oracle / OpenJDK? 41 How to fix an UnsatisfiedLinkError (Can't find dependent libraries) in

On a machine with multiple versions of Java, this command will return the default JVM. Only one JRE can be installed on Mac OS X. If this works, you need to edit your classpath. (iTunes has a proclivity for changing the classpath, so if you recently upgraded iTunes, this is likely the source of the problem.) http://analysedesgeeks.com/java-version/java-check-version-at-runtime.html These instructions are specialized to Windows 7, but are similar for Windows XP and Windows Vista.

Check that you edited your PATH environment variable as indicated. As example this an excerpt of what ca be shown: $ java -XshowSettings:properties -version [...] java.specification.version = 1.7 java.vendor = Oracle Corporation java.vendor.url = http://java.oracle.com/ java.vendor.url.bug = http://bugreport.sun.com/bugreport/ java.version = 1.7.0_95 Java Version in Windows Programs The latest version(s) of Java on your system will be listed as Java 7 with an associated Update number (eg. From the Command Prompt, type the java command below.

I can compile with javac, but I get the error message "Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld" when I try to execute it with java. Click View to display the Java Runtime Environment Settings Verify that the latest Java Runtime version is enabled by checking the Enabled box. How do I change my directory to the H: drive from the Windows Command Prompt? HelloWorld".

Java Version under Windows Start Menu - Java 7 Update 40 (7u40) and later versions Starting with Java 7 Update 40, you can find the Java version through the Windows Start Sorry, it's Oracle Java now. –wyz Dec 12 '11 at 9:29 there is not information about the vendor –Ernesto Iser Feb 15 at 15:32 add a comment| up vote Now try to execute with "java -cp . It turned out my system started using the 64bit version rather than the 32bit version was needed (windows server 2012).

java share|improve this question edited Feb 27 '12 at 0:18 bmargulies 66.2k26122234 asked Dec 12 '11 at 9:19 noquery 9121816 add a comment| 7 Answers 7 active oldest votes up vote Windows XP Click Start Select Control Panel Click the Add/Remove Programs control panel icon The Add/Remove control panel displays a list of software on your system, including any Java versions that Method 2 Windows 1 Press the windows key + r and enter "cmd" with the dos open, type in java -version The output will look something like: Java version "1.6.0_03 Java(TM) It will show a lot of system properties, that you can also access by means of the System.getProperty(String) static method in a Java class.