This tutorial will help you to install Java with Eclipse by following few simple steps:
1. Install and configure Java
2. Install Eclipse
Install and Configure Java
1. Download JDK from here and install
2. Configure JAVA Environment Variable
3. Navigate to my PC> properties> Advanced System Settings > Environment Variables:
4. Add New System Variable as in image :
5. Now Navigate to PATH variable under system variables section and add: %JAVA_HOME% /bin; as in image :
6. Navigate to Start >Run> cmd. it will open command prompt. Type: Java –version.
7. Now check path variable: type command: Echo %PATH%
Note: It will display path, you can check your set path for java is displayed or not
JAVA installation and path variable setting is done successfully. Let’s move to Step 2
Install Eclipse
1. Download Latest version of Eclipse from here.
2. Install it
3. Open and Provide work space
4. Create New Project : File > New > JAVA Project
5. Click Finish and Project will be created in Package Explorer.
6. Right click on Src folder > New > Package. Provide name . it will add a package named: Test as in image.
7. Right click on Package: test_Java > New > Class. it will show following:
8. Provide class name and Click Finish.
9. Write code and execute.
Now we have setup JAVA using Eclipse, its environment is ready. we will explore basics of JAVA. In next article, we will learn about: "Data Types and Variables"in JAVA.
No comments:
Post a Comment