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

What is the difference between Selenium and QTP?

Feature QTP(UFT) Selenium Language Support VB Script Java, C#, Ruby, Python, Perl, PHP Windows (Non-browser) based Application support Yes No Browser support Google Chrome (uptill ver 23) Internet Explorer , Firefox ( ver 21) Google Chrome , Internet Explorer , Firefox , Opera , HtmlUnit, Safari Environment Support Only Windows Windows , Linux , Solaris OS X , iOS, Android, Others (If brower & JVM or Javascript support exists) Mobile (Phones & Tablets) Support Different commercial product i.e. HP UFT Mobile (formerly known as MobileCloud for QTP) Android , iPhone & iPad , Blackberry , Headless WebKit Framework Easily integrated with HP Quality Center or HP ALM (separate commercial products) Selenium + Eclipse + Maven / ANT + Jenkins...

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.