Geek Dashboard

How-To's, Smartphones, News and Reviews

  • Home
  • News
  • Smartphones
    • Android
    • iOS
  • Computers
    • Windows
    • macOS
  • Internet
  • Reviews
You are at Home » Computer

How to Download Java for Windows 8 and Set Java Path

Last Updated on March 27, 2020 by Amar Ilindra Leave a Comment

If you’re a programmer and using windows 8 operating system on your laptop or desktop or even if you just upgraded to windows 8 from windows 7 operating system then you must download java for windows 8 and to run java programs, you must set java path and class path in your windows 8 operating system. Before setting required paths in your windows 8 PC or laptop, you must download and install java for windows 8. Here is a detailed guide which helps you download and install java for windows 8 and next to setup java path and class path in few simple easy steps.

java for windows

Before setting java path and class path in java, one must know about what path exactly is? Path is an environmental variable which include the address of commands in java. whenever you write a command in command prompt, operating system looks for this path to execute those commands successfully.

Also Read: Best Windows 8 Tips and Tricks

Setting path is nothing but adding JDK bin directory to environment variable. JDK bin directory contains “java” and “javac” commands. javac command is used to compile java program and java command is used to run the compiled java program.

How to download java for windows 8 and install Java Development Kit (JDK)

Before setting java path and class path you must download java for windows 8. Here is a detailed tutorial to download and install Java Development Kit on windows 8 in few simple clicks.

Go with below link to download java for windows 8. Before downloading make sure you have selected correct file type including bit because 32-bit JDK may not work on 64-bit and vice versa.

Download Java for Windows 8

Once download completes, run it as administrator and follow on-screen instructions to complete installation.  It is recommend to install JDK in the same drive where operating system is being installed. In my case I installed in C drive.

How to set Java Path and Class Path in Java

Before setting java path in your system, let us make sure that path is not set earlier. Just press Ctrl+R and type cmd to open command prompt. In command prompt type javac and press enter.

javac error windows 8

If you see an error javac is not recognized as an internal or external command then it clearly says, java path is not set currently and we have to set the path.

Once you confirmed that path is not set, go to installation directory of JDK. Generally if you installed in C drive, it should look like this and Copy the entire address of that directory.

C:Program FilesJavajdk1.8.0bin

Now right click on my computer icon and select properties. From the left menu, click Advanced System Settings and then press Advanced in the popup windows displayed and ultimately click Environment Variables.

java path

Under User variables, select path and click on edit. Now add ; at the end of the path and paste the address copied earlier and add another ; then click Ok. Again click Ok to save all changes we just made.

set java path

That’s all we made all necessary things to set java path in windows 8. Now just go to cmd, then type javac and hit enter. If you see lots of commands rather than a error in single line, then you’re done perfectly fine.

javac

Make use of below sample problem to test whether your JDK is working fine or giving any errors on your machine.

class geek_dashboard
{
public static void main(String args[])
{
System.out.println("This tutorial is from Geek Dashboard");
}
}

In case if you face any difficulties while setting up path or while installing java for windows, let us know from comments section.

#java#JDK#Windows#Windows 8
Posted inComputer

Spread the Word!

Avatar for Amar Ilindra

Amar Ilindra Facebook Twitter LinkedIn Instagram GitHub

Amar Ilindra is a gadget freak, tech enthusiast and full stack developer. He loves to try everything with technology and blog about his tech experience. Apart from writing, he spends most of this time developing useful web apps and mobile applications for Android and iOS.

Related articles

News

RedmiBook Series Launched with Full HD Displays, Intel Chipsets in India

RedmiBook
News

Vaio SE14 and SX14 Laptops Launched in India With 11th gen. Intel Chipsets, Starting at Rs. 88,990

Vaio
Reviews

Convert DVD's to Different Video Formats Using DVDFab DVD Ripper

Advanced settings panel

Comment Policy:

The comments section is aimed to help our readers in case of any questions or you can even appreciate us for our hard work. Every comment is strictly moderated before approving it.

Your name and comment will be visible to the public. Never share your personal information in the comments section.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Over 1,30,286+ Followers

Join to get latest updates from Geek Dashboard

Facebook Twitter Telegram Pinterest YouTube Instagram

Recently Published

  1. Motorola Edge 30 Officially Launched in India with Snapdragon 778G SoC starting at Rs. 27,999

  2. Surfshark Review – A Lock Over Your Privacy

  3. Fortnite Returns to iOS Devices Through Microsoft's Xbox Cloud Gaming for Free

  4. Insightful – Grow Your Employees' Productivity

  5. Moto E32 Launched with 6.5-inch Display, 5000mAh Battery and Unisoc T606 SoC

Geek Dashboard Placeholder

Download the apps and never miss a story from us

We put a lot effort and resources in writing our articles and we believe it is our responsibility to satisfy your tech hunger. We will keep you filled forever!

  • Get Geek Dashboard App from Google Play
  • Get Geek Dashboard App from Chrome Web Store
Advertisement
Geek Dashboard Logo

Geek Dashboard, a technology blog strives to produce high-quality tech for our readers. Here you will find the latest updates on trending tech news, unbiased product reviews, and how-to guides on various gadgets.

Got a Tip? Write In tip@geekdashboard.com

© 2012 - 2022 · Geek Dashboard, product of ikva eSolutions

Blog Advertise About Jobs Contact Privacy Policy Write For Us T&C Office Setup

No dogs were injured while working on this website because we love them