Click the Save menu to save your program.Type the following code in the Notepad editor.Press the Yes button for creating the file.The Notepad program will show a dialog saying that the HelloWorld.java file is not found.Create the HelloWorld.java source file by typing notepad.exe HelloWorld.java.Go to the src directory and create another directory call program.Let’s now create our first Java program, the famous Hello World program. Now you have the JDK installed and configured properly. Java Command Recognized Creating The HelloWorld.java You can type javac -version to check the version of your JDK. You will see that the javac command is now run as expected. Now you can open a new command prompt window and type the javac command. Press the OK button on the System Properties window to close it.Press the OK button to finish the Environment Variables setting.Press the OK button to update the User Variable.You should add this information at the beginning at the beginning to make sure it will be picked first. In the Edit User Variable screen, update the current variable value by adding the path to JDK bin folder, in our case the path will be C:\Program Files (x86)\Java\jdk1.7.0_45\bin.Find the Path variable and click the Edit button.In the Environment Variables windows you will see two sections.Click the Environment Variables button.In the System Properties window choose the Advanced tab.Click Advanced system setting from the Task list.Right click on Computer icon and choose the Properties menu.Open your Windows Explorer, you can use the Windows E shortcut.The following steps will show you how to configure the PATH environment variable. To make the javac command run properly you need to update the PATH environment variable to include the Java binary installation path.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |