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!
🌐
YouTube
youtube.com › watch
How to install and run JAVA in Windows 10 using CMD | Easy Tutorial - YouTube
In this video, we have shown you how to install Java JDK and JRE in your Windows 10 and the same procedure can also be followed for Windows 8 and 8.1. I hope...
Published   June 20, 2017
🌐
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
🌐
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.
Find elsewhere
🌐
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.
🌐
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.
🌐
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.
🌐
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 ...
🌐
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.
🌐
Microsoft Learn
learn.microsoft.com › en-ca › answers › questions › 5567479 › how-do-i-get-java-to-install-on-my-windows-10-pc
How do i get java to install on my windows 10 PC? - Microsoft Q&A
September 28, 2025 - Give feedback if the information was useful or not. ... I have tried that, it didn't work. ... Access the command prompt (admin) and run the command: net user administrator /active:yes .
🌐
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 › 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.
🌐
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.
🌐
Microsoft Learn
learn.microsoft.com › en-us › java › openjdk › install
Install the Microsoft Build of OpenJDK | Microsoft Learn
January 8, 2026 - 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.