๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ help โ€บ win_controlpanel.html
Where is the Java Control Panel on Windows?
In the Windows Control Panel, click on Programs. Click on the Java icon to open the Java Control Panel.
๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ help โ€บ windows_manual_download.html
How do I manually download and install Java for my Windows computer?
To test that Java is installed and working properly on your computer, run this test applet. NOTE: You may need to restart (close and re-open) your browser to enable the Java installation in your browser.
Discussions

How do I get Java Files to Open on my Computer
Java files are programs, you need to run them with the Java Runtime Environment (JRE) if they're meant to be run manually. They may also just be meant to drop in to the mods folder for your game, depending on how it's setup. But depending on what they're setup to do, trying to open them by clicking could just make them run, do what they do and close - in which case you'd see a window for a half second and they'd be done. If you've installed Java on your PC, you can open a command prompt go to the location of the file and run "java " and it should run. Keep in mind that these are actual programs - please do not run random programs you get online if they're not from a source you trust. More on reddit.com
๐ŸŒ r/techsupport
1
1
January 29, 2023
Run Java application at Windows startup - Stack Overflow
I have a JAR file containing a Java application. How can I make it start with Windows, without needing user interaction? More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to make borderless fullscreen in java?
This was one of the first google results and I've done this myself. This is also assuming you're using the Swing API (if not I suggest doing some google searches of your own) http://forums.devx.com/showthread.php?151801-Fullscreen-BorderLess-Window-Form&p=453317#post453317 More on reddit.com
๐ŸŒ r/java
5
6
January 10, 2014
how do i get java to open .jar files in windows 10? i googled and nothing seems to be working for me.
Spring to Life update is now Available ยท Minecraft community on Reddit More on reddit.com
๐ŸŒ r/Minecraft
8
1
March 18, 2019
๐ŸŒ
W3Schools
w3schools.com โ€บ java โ€บ java_getstarted.asp
Java Getting Started
To check if you have Java installed on a Windows PC, search in the start bar for Java or type the following in Command Prompt (cmd.exe):
๐ŸŒ
Princeton CS
introcs.cs.princeton.edu โ€บ java โ€บ windows โ€บ manual.php
Hello World in Java on Windows (manual instructions)
This document instructs you on how to manually setup a Java programming environment for your Windows computer and provides a step-by-step guide for creating, compiling, and executing a Java program using either DrJava or the Command Prompt.
๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ help โ€บ javaconsole.html
How do I enable and view the Java Console?
You can enable the Java Console for the Windows platform using the Java Control Panel or the Java icon displayed in the Windows system tray. ... In the Java Control Panel, click the Advanced tab. Expand the Java console option. Select Show Console and click OK.
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ windows โ€บ dev-environment โ€บ java
Get started with Java on Windows | Microsoft Learn
March 27, 2026 - Open a PowerShell or Command Prompt terminal and run: ... Unlike on macOS (where /usr/libexec/java_home handles this), on Windows you need to set JAVA_HOME manually.
๐ŸŒ
TheServerSide
theserverside.com โ€บ blog โ€บ Coffee-Talk-Java-News-Stories-and-Opinions โ€บ How-do-I-install-Java-on-Windows
How do I install Java on Windows?
To install Java on Windows you only need to follow these five simple steps. In this quick tutorial, we'll show you how to setup Java on Windows and run apps like Minecraft and Apache Tomcat on the JDK.
Find elsewhere
๐ŸŒ
PhoenixNAP
phoenixnap.com โ€บ home โ€บ kb โ€บ devops and development โ€บ how to install java on windows
How to Install Java on Windows
December 11, 2025 - To download the latest Java Development Kit installation file for Windows: 1. Open a web browser and navigate to the Oracle Java Downloads page. 2. Select the latest JDK version. In this example, the latest available version is JDK 21. ... Wait for the download to complete. Note: If you need to set up Java on a different system, check out our tutorials for installing Java on Ubuntu, Fedora, Raspberry Pi, and CentOS.
๐ŸŒ
YouTube
youtube.com โ€บ techhut
How to open Java files in Windows - Run .JAR Files - YouTube
How to extract or run .JAR Java files in Windows. As well as a easy fix to the issue. .JAR files are an important part of daily computer life. Especially if ...
Published ย  April 17, 2020
Views ย  38K
๐ŸŒ
Javatpoint
javatpoint.com โ€บ how-to-run-a-java-program-in-windows-10
How to Run a Java program in Windows 10 - Javatpoint
How to Run a Java program in Windows 10 with oops, string, exceptions, multithreading, collections, jdbc, rmi, fundamentals, programs, swing, javafx, io streams, networking, sockets, classes, objects etc,
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ java โ€บ openjdk โ€บ install
Install the Microsoft Build of OpenJDK | Microsoft Learn
January 8, 2026 - To download certain files mentioned in this article, see Download the Microsoft Build of OpenJDK. For Windows, Linux, and macOS, we produce ZIP (Windows) and TAR.GZ (Linux/macOS) packages. To install, extract one of these packages in a folder of your choice, then set the JAVA_HOME environment ...
๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ help โ€บ enable_panel.html
How do I enable Java through the Control Panel?
CAUSE The Java content in the browser is disabled in the Java Control Panel. If Java is already installed but applets do not work, you may need to check and see if Java is enabled.,
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ how-to-install-java-on-windows
How to Install Java on Windows
March 3, 2022 - Since you want to install Java on your Windows computer, simply click Windows.
๐ŸŒ
How-To Geek
howtogeek.com โ€บ home โ€บ windows โ€บ how to open jar files on windows 10 and 11
How to Open JAR Files on Windows 10 and 11
September 23, 2023 - To run a JAR file on Windows 10 or Windows 11, right-click it, then select Open With > Java Platform SE Binary.
๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ help โ€บ win10_faq.html
Windows 10 and Java
If Java is installed, Configure Java will appear in the search results. Select Configure Java. The Java Control Panel will appear. Alternatively, it can be found by clicking on the Start button on the taskbar, then All Apps where Java will be listed, if it is installed. The Edge browser allows ...
๐ŸŒ
Quora
quora.com โ€บ How-do-you-run-a-Java-file-in-Windows
How to run a Java file in Windows - Quora
Answer (1 of 2): It usually depends on what you are trying to do. If you are the one who wrote it, then you most likely have to first compile it and then run it using a JDK. If you are not the person who wrote it, then you need to refer to the instructions from the place where you got it from. T...
Top answer
1 of 8
39

Create a .bat file and put this inside:

javaw -Xmx200m -jar C:\Path\to\jarfile\TheJar.jar

Then put the .bat file into the windows startup folder.

One more thing: There's a difference between using java and javaw. While java is better when you are debugging an application, the application prints text or something like that, javaw is better when you don't need that. Why? Because java runs java program using a console that shows all that application prints (println's, exception stacktraces and so on) while javaw doesn't run on console.

2 of 8
24

it's simple as you have to put shortcut in

Windows 7 C:\users\All Users\Start Menu\Programs\Startup(Admin) or User home directory(%userProfile%)

Windows 10 : In Run shell:startup

in it's property -> shortcut -> target - > java.exe -jar D:\..\runJar.jar

NOTE: This will run only after you login


With Admin Right

sc create serviceName binpath= "java.exe -jar D:\..\runJar.jar" Will create windows service

if you get timeout use cmd /c D:\JAVA7~1\jdk1.7.0_51\bin\java.exe -jar d:\jenkins\jenkins.war but even with this you'll get timeout but in background java.exe will be started. Check in task manager


In some restricted environment as I was in corporate environment

ERROR:

The service did not respond to the start or control request in a timely fashion

In this case

cmd /c D:\JAVA7~1\jdk1.7.0_51\bin\java.exe -jar d:\jenkins\jenkins.war

This will give you an error if you run manually but will run in background.

NOTE: This will run at windows logon start-up(before sign-in, Based on service 'Startup Type')

Detailed explanation of creating windows service


Regedit

Note: Edit Advanced User only

To Run for Current User Only

HKEY_CURRENT_USER/SOFTWARE/MICROSOFT/WINDOWS/CURRENT_VERSION/RUN

To Run for All Users

hkey_local_machine/SOFTWARE/MICROSOFT/WINDOWS/CURRENT_VERSION/RUN

Create a String with Name and Path using above command

๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ download-install-java-windows-linux-macos
How to Install Java on Windows, Linux and macOS? - GeeksforGeeks
January 7, 2025 - Open command prompt and navigate to the D drive, where the file.java is located. To do this, type "dir" as shown below: Step 4: The dir command display all the contents of the directory. Step 5: Compile the Java program. The javac command is used to compile the Java program. ... Here, in this case the filename is file. We have successfully run our first Java program on Windows OS.
๐ŸŒ
Mkyong
mkyong.com โ€บ home โ€บ java โ€บ how to install java on windows (step-by-step guide)
How to Install Java on Windows (Step-by-Step Guide) - Mkyong.com
October 9, 2025 - We select Windows as our operating system and download the .msi installer. We double-click the downloaded .msi file. The installation wizard guides us through the process: Accept the license agreement. Choose or confirm the installation path (default is C:\Program Files\Java\jdk-21). Click "Install" and wait for the process to finish. To verify that Java was installed successfully, we open Command Prompt and run: