There is a /s option in JRE installer (see here), so basically you can. However, you will have to somehow download JRE to client's workstation. I suggest using wget for this.

However, you can also use java-to-exe wrappers - JSmooth for example can automagically download JRE for you if it is not installed.

Answer from npe on Stack Overflow
🌐
Medium
medium.com › @andrii.bibik.dev › tutorial-on-how-to-install-java-some-basics-of-command-prompt-java-file-compilation-and-run-on-740bb00e6c90
Tutorial on how to install java, some basics of command prompt, java file compilation and run on Windows 10. Game.java file as a simple game example to play around ;) | by Andrii Bibik | Medium
January 12, 2020 - Test time :) Go to Command Prompt and type “javac -help”. “Start” -> type “cmd” -> click on “Command prompt” -> type “javac -help” -> press Enter. If there is a list of options — Congratulations!
🌐
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?
The following commands outputs the Windows PATH in PowerShell: PS C:\> echo $env:PATH C:\_tools\jdk-17\bin; C:\WINDOWS\system32; C:\WINDOWS; If the full path to the bin folder of the JDK install is listed, then the Windows PATH for Java has been configured correctly. The final step to confirm the Java install on Windows was a success is to actually run a Java command and see if it works.
🌐
Oracle
java.com › en › download › help › silent_install.html
How do I arrange a silent (unattended) Java installation?
Perform a Windows Offline Installation and install the JRE on D drive at java\jre ... The command to install the above mentioned configuration is as follows: jre-7-windows-i586.exe /s INSTALLDIR=D:\java\jre
🌐
Oracle
java.com › en › download › help › windows_manual_download.html
How do I manually download and install Java for my Windows computer?
Use these simple instructions to manually download and install Java (also known as Java Runtime Environment or JRE) for your Windows computer
🌐
PhoenixNAP
phoenixnap.com › home › kb › devops and development › how to install java on windows
How to Install Java on Windows
December 11, 2025 - This step-by-step tutorial shows how to install Java on Windows, configure the Java Development Kit and test the installation afterwards.
🌐
Oracle
java.com › en › download › help › log_files.html
Java software installation log files
If you download Java using Internet Explorer <Java download file name> will be jre-8uX-windows-i586.exe (If you have downloaded Java through Offline method) or JavaSetup8uX.exe (If you have downloaded Java through Online method), where 8uX is the Java update (e.g. 8u25, 8u51 and so on) Mozilla Firefox <Java download file name> will be jxpiinstall.exe Chrome <Java download file name> will be chromeinstall-8uX.exe where 8uX is the Java update (e.g. 8u25, 8u51 and so on) Follow all the prompts to complete Java installation.
Find elsewhere
🌐
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):
🌐
Oracle
docs.oracle.com › javacomponents › msi-jre › install-guide › installing-jre-command-line.htm
Installing the JRE from the Command Line
You can install the JRE by downloading the appropriate Oracle JRE 9 MSI Enterprise Installer for your system and running it from the command line.
🌐
Saylor Academy
learn.saylor.org › mod › book › view.php
1.1. How To Install JDK on Windows: Steps 0-4
Privacy Policy Terms of Use · © Saylor University 2010-2026 except as otherwise noted. Excluding course final exams, content authored by Saylor University is available under a Creative Commons Attribution 3.0 Unported license. Third-party materials are the copyright of their respective owners ...
🌐
Scaler
scaler.com › home › topics › java › how to install java on windows?
How to Install Java on Windows? - Scaler Topics
February 9, 2024 - This guide outlines the steps to install JDK SE 16 on Windows 10, providing the necessary tools for Java development and execution. ... A system running Windows 10. A network connection. Administrator privileges. Choose from our industry-leading programs designed for career success
🌐
Princeton CS
introcs.cs.princeton.edu › java › 15inout › windows-cmd.html
Java and the Windows Command Prompt
This document instructs you on how to use the Windows Command Prompt with Java. These instructions are specialized to Windows 7, but are similar for Windows XP and Windows Vista. You will use the Java compiler javac to compile your Java programs and the Java interpreter java to run them. You should skip the first step if Java is already installed on your machine.
🌐
GeeksforGeeks
geeksforgeeks.org › linux-unix › download-install-java-windows-linux-macos
Installing Java on Windows, Linux, and macOS - GeeksforGeeks
April 20, 2026 - Here, we will discuss how to download and install Java on a Windows 64-bit Machine and set up the environment to run the first Java program on the command prompt. The process is the same for all Windows i.e. 7, 8, 10, and 11.
🌐
Microsoft Learn
learn.microsoft.com › en-us › java › openjdk › install
Install the Microsoft Build of OpenJDK | Microsoft Learn
If you double-click on the installer file, it launches the traditional Windows application installer, where you can follow the instructions on the screen. For wide-scale deployment, you can install the EXE on the command line using the following steps: Download the .exe file. For more information, see Download the Microsoft Build of OpenJDK. Choose the features you want to install from the following table: ... You can use FeatureOracleJavaSoft to prevent Oracle Java from launching from PATH when the Microsoft Build of OpenJDK is uninstalled.
🌐
Oracle
docs.oracle.com › en › java › javase › 22 › install › installation-jdk-microsoft-windows-platforms.html
5 Installation of the JDK on Microsoft Windows Platforms
March 14, 2024 - "C:\Program Files\Common Files\Oracle\Java\javapath\java.exe" "C:\Program Files\Common Files\Oracle\Java\javapath\javaw.exe" "C:\Program Files\Common Files\Oracle\Java\javapath\javac.exe" "C:\Program Files\Common Files\Oracle\Java\javapath\jshell.exe" Alternatively, you can run these executables directly from the JDK's bin directory. The JDK MSI Enterprise Installer is packaged as an .msi installer and runs with minimal dialogs. It supports silent installation of the JDK and is customizable using command line parameters.
🌐
Oracle
docs.oracle.com › javase › 8 › docs › technotes › guides › install › windows_installer_options.html
17 Windows JRE Installer Options
April 21, 2026 - This page describes options for installing, configuring, and creating a log file for the Windows Java Runtime Environment.
🌐
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: