Skip to main content

How to install Java?

Download the latest version of the Java JDK from here.


Click on Accept License and choose 32-bit or 64-bit for windows.


Double-click on the install file and click on next up to install the java.

Now open command prompt window, type "java -version" and press enter.

 
Java installed but we should set the Environment Variables.

How to set Environment Variables? 
Right click on My Computer-> Click on Properties
In Property window click on Advanced system settings.

 
In System Properties window click on Environment Variables.

 
In Environment Variables window, click on path in System variables section.

 
Now click on Edit. Careful not to delete anything in this box. At the end of the text box, add a semi-colon if there is not one already, and add "C:\Program Files (x86)\Java\jdk1.8.0_05\bin\;" to the text box. This is assuming you did not change the file path of the installation. 


Now click on OK.

Now open command prompt window, type "java -version" and press enter.


Congratulations! You have taken your first step to starting Java programming.

Comments

Popular posts from this blog

How to create package inside a project?

What Is a Package? A package is a namespace that organizes a set of related classes and interfaces. Conceptually you can think of packages as being similar to different folders on your computer. You might keep HTML pages in one folder, images in another, and scripts or applications in yet another. Because software written in the Java programming language can be composed of hundreds or thousands of individual classes, it makes sense to keep things organized by placing related classes and interfaces into packages. -> Right click on the Project (Make sure you should right click on project, because you are creating package inside the project). -> Go to New. -> Click on Package. -> In New Java Package window, enter package name in Name text box. -> Now click on Finish . -> Now you can see the package inside the project at Project Explorer area. Now your package is ready.

How to create workspace in eclipse?

We have to create workspace to save our java files. -> Double click on the eclipse. -> You can choose any workspace using browse button . -> Click on OK after select the workspace. -> Now eclipse editor will launch to write scripts.