Javac -versionYou would see the following error: That’s because Windows could not find the javac program, so we need to set some environment variables which tell the location of javac.exe. “1.7.0_21” - Congratulations! Your computer is now capable of running Java programs.Now try to type the following command: Java -versionYou would see the following result: That shows version of the JRE, e.g. The following screenshot describes the JDK’s directory structure: Now let’s test if Java runtime is installed correctly. Here we choose the version for Windows 圆4:Īfter downloading the program, run it to install the JDK on your computer (just following the steps, leave the defaults and click Next, Next…): You would see the JDK is installed in the following directory, for example: C:\Program Files\Java\jdk1.7.0_21. java.exe: is the Java Virtual Machine launcher that executes bytecode.Ĭlick this link to download the latest version of JDK installer program:Check the option “ Accept License Agreement”, and choose an appropriate version for your computer from the list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |