Skip to content

JNLP wont work with plus sign + in file name #599

Open

Description

@Tartarga

OpenWebStart throws File Not Found if a plus sign is in the filename of the JNLP file. Due to reasons beyond my control I cannot provide loGs, nOr am I the able to haVe The developers change things. Once manually removed the program works wonderfully.

Windows 10/11 x64

Activity

  1. Tartarga commented on Sep 26, 2024

    @Tartarga
    Author

    Example, note + is a space on the 2nd part of the error

    net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file at 'file:/C:/Users/X/Downloads/launch+2.jnlp'. You can try to download this file manually and send it as bug report to IcedTea-Web team.
    at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:333)
    at net.sourceforge.jnlp.Launcher.launch(Launcher.java:193)
    at net.sourceforge.jnlp.runtime.Boot.launch(Boot.java:355)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:335)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:73)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.sourceforge.jnlp.runtime.Boot.runMain(Boot.java:279)
    at net.sourceforge.jnlp.runtime.Boot.mainWithReturnCode(Boot.java:132)
    at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:114)
    at com.openwebstart.launcher.PhaseTwoWebStartLauncher.main(PhaseTwoWebStartLauncher.java:93)
    at com.openwebstart.launcher.OpenWebStartLauncher.main(OpenWebStartLauncher.java:47)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
    at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)
    at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:25)
    Caused by: java.io.FileNotFoundException: C:\Users\X\Downloads\launch 2.jnlp (The system cannot find the file specified)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.(FileInputStream.java:138)

  2. jajajaneeneenee commented on Jan 26, 2025

    @jajajaneeneenee

    I had exactly the same problem today – I wanted to rename a JNLP of JOSM (OpenStreetMap editor – see https://josm.openstreetmap.de/) from “josm-latest.jnlp” to “JOSM latest Webstart (pre-release, not fully tested, with JAVA 11+).jnlp” and got an error message when trying to use it:

    net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file at 'file:/Users/xxx/Downloads/JOSM%20latest%20Webstart%20(pre-release,%20not%20fully%20tested,%20with%20JAVA%2011+).jnlp'. You can try to download this file manually and send it as bug report to IcedTea-Web team.

    When I remove the “+” character from the file name, it works ... It would be nice (or actually necessary) if you could use all the characters allowed by the system in file names!

    My system:

    • macOS 10.14.6 (I know, it's old ... but it's good for me ...)
    • OpenWebStart v1.10.1 with JAVA JDK Azul 17.0.4 (JOSM is working fine with this version, I had problems with JAVA 21.x.x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions