File Association: JavaWs not working on Windows 10 for JSP files

Abstract: Resolve JavaWs failing to launch JSP files on Windows 10 by manually configuring file associations to point to javaws.exe.

Created: 2026-09-28 by
JavaWs fails to launch JSP files on Windows 10 because the default file association often points to a generic text editor or an incorrect executable path. To resolve this, you must manually configure the operating system's registry or use the graphical interface to link .jsp extensions directly to the Java Web Start launcher. This ensures that double-clicking a JSP file triggers the correct runtime environment rather than opening it as plain text.

Understanding the Root Cause

Windows 10 manages file associations through the Registry and the Settings application. When you install Java Development Kit (JDK) or Java Runtime Environment (JRE), the installer attempts to set up these associations automatically. However, this process frequently fails for specific formats like JSP (JavaServer Pages) if the installation is partial, corrupted, or if a previous IDE (like Eclipse or IntelliJ IDEA) has hijacked the association.

JSP files are technically XML-based text files, but they are intended to be processed by a servlet container or launched via Java Web Start (JavaWs). If your system tries to open them with Notepad or Visual Studio Code instead of javaws.exe, the application logic defined in the JSP will never execute. This issue is distinct from general coding errors; it is purely a configuration problem within the host operating system.

Method 1: Using the Graphical Interface

The safest way to fix file associations without touching the registry is through the Windows Settings menu. This method updates the user-level preferences and is reversible.

  1. Navigate to Settings > Apps > Default apps.
  2. Scroll down to the bottom of the page and click on Select default apps by file type.
  3. Use the search bar at the top of the list to find .jsp.
  4. If .jsp is listed, click on the current app icon next to it. A picker window will appear. Select More apps if the Java Web Start launcher is not immediately visible.
  5. Scroll further down and select Look for another app on this PC.
  6. Browse to your Java installation directory. The executable is typically located at C:\Program Files\Java\jre\bin\javaws.exe or C:\Program Files\Java\jdk\bin\javaws.exe.
  7. Select javaws.exe and confirm the choice.

This action tells Windows to use the Java Web Start executable whenever a file with the .jsp extension is double-clicked. Note that modern versions of Java may deprecate JavaWs in favor of standard JAR execution, so ensure your specific setup requires this legacy launcher.

Method 2: Editing the Registry Directly

If the graphical interface does not allow you to select javaws.exe or if the association reverts after a reboot, you may need to edit the Windows Registry. This method provides a more permanent fix but carries higher risk if performed incorrectly.

Press Win + R, type regedit, and press Enter. Navigate to the following key:

HKEY_CURRENT_USER\Software\Classes\.jsp

If the .jsp key does not exist, right-click on Classes, select New > Key, and name it .jsp. In the main pane, double-click the (Default) value and set it to a unique identifier, such as JavaWs.JspFile.

Next, create a new key under Classes named exactly what you put in the default value above (JavaWs.JspFile). Inside this new key, create another key named shell, then inside that create open, and finally command.

Double-click the (Default) value under the command key. Set the value data to the full path of your executable followed by %1. For example:

"C:\Program Files\Java\jre\bin\javaws.exe" "%1"

Ensure you include the quotes around the path if it contains spaces. This command structure instructs Windows to run the executable and pass the clicked file path as the first argument.

Verifying the Configuration

After applying either method, test the association by locating a .jsp file in File Explorer. Right-click the file and select Open with. If you see javaws.exe as an option and selecting it launches the application correctly, the association is successful. You can also check the file properties by right-clicking and selecting Properties. Under the General tab, verify that "Opens with:" displays Java Web Start Launcher.

If the file still opens in a text editor, ensure that no third-party antivirus or optimization software is overriding the default handlers. Some security suites lock file associations to prevent malware from hijacking executables. Additionally, consider checking if your IDE is configured to handle project files externally, which might interfere with OS-level associations.

For users managing large datasets alongside their Java applications, understanding how to manipulate file structures programmatically can be useful. You might find related techniques in Add Row Data to Columns Using Apache POI helpful for handling data inputs that your JSP applications might generate.

Frequently Asked Questions

Why does my JSP file open in Notepad instead of running?

This happens because Windows defaults to treating unknown or text-like extensions as plain documents. Unless explicitly associated with an executable handler, the OS assumes the file is readable text. Reassigning the default program to javaws.exe overrides this behavior.

Can I associate JSP files with an IDE instead of JavaWs?

Yes, you can point the association to your IDE's executable (e.g., eclipse.exe). However, this will only open the source code for editing, not execute the web application. Use JavaWs for runtime execution and IDEs for development.

Does this fix apply to other Java-related file types?

The same procedure works for .jar, .jnlp, and .java files. However, .jar files are usually handled by the JRE automatically upon installation. .jnlp files are specifically designed for Java Web Start and should always point to javaws.exe.

What if javaws.exe is missing from my system?

Modern JDK/JRE installations (version 9 and above) have removed Java Web Start. If the file is missing, you cannot use this method. You must switch to launching your application via java -jar commands or use a dedicated launcher script.

Will resetting Windows defaults break my Java associations?

Yes, using the "Reset all default apps" feature in Windows Settings will revert all file associations to Microsoft defaults. This will likely disconnect JSP files from JavaWs again, requiring you to reconfigure the association manually.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More