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 tech-savvy individual who is passionate about gadgets and new technology. He is a full-stack developer who enjoys experimenting with technology and sharing his experiences through blogging. When he's not writing, he devotes his time to creating practical web and mobile applications for both Android and iOS platforms.

Related articles

Computer

5 Reasons to Buy Windows 8 Today

buy windows 8 now
Computer

How to Password Protect Files and Folders

password protect files and folder
Computer

How To Recover Deleted Files From SD Card, USB Drives and Hard Disks

how to recover deleted files from sd card and USB disks

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. Lenovo Yoga 9i 2-in-1 Laptop with 13th Gen Intel Core i7 Launched in India

  2. Lenovo Tab P11 5G Launched with 11-inch 2K Display and Snapdragon 750G SoC in India

  3. How To Select All Photos on iPhone and iPad Quickly

  4. iQOO 11 5G with Snapdragon 8 Gen 2 SoC and 120W Fast Charging Launched in India

  5. Realme 10 Officially Launched with 90Hz AMOLED Display and Dual Cameras in India

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
Geek Dashboard Logo

At Geek Dashboard, we are dedicated to bringing you the latest and greatest in technology news, reviews, and how-to guides. From smartphones to laptops, and everything in between, we've got you covered.

Got a Tip? Write In tip@geekdashboard.com

© 2012 - 2023 · 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