Menu

#212 Executable doesn't run with bundled jre if in a folder containing spaces (jni or not)

3.x
open
nobody
None
5
2022-12-01
2021-03-09
JPDelprat
No

Generated executable doesn't run with a bundled jre if in a folder containing spaces (jni mode or standard mode).
Both the executable and the bundled jre are under the folder containing spaces.

I got the following message :

java.lang.NoClassDefFoundError: com/a/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: com.a.launcher.Launcher
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Exception in thread "main"

Related

Bugs: #212

Discussion

  • Grzegorz Kowal

    Grzegorz Kowal - 2021-03-10

    I will try to fix this.

    Best regards,
    Grzegorz

    On Tue, Mar 9, 2021, 23:47 Jean-Pierre Delprat jeepy31@users.sourceforge.net wrote:


    Status: open
    Group: 3.x
    Created: Tue Mar 09, 2021 10:47 PM UTC by Jean-Pierre Delprat
    Last Updated: Tue Mar 09, 2021 10:47 PM UTC
    Owner: nobody

    Generated executable doesn't run with a bundled jre if in a folder
    containing spaces (jni mode or standard mode).
    Both the executable and the bundled jre are under the folder containing
    spaces.

    I got the following message :

    java.lang.NoClassDefFoundError: com/a/launcher/Launcher
    Caused by: java.lang.ClassNotFoundException: com.a.launcher.Launcher
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    Exception in thread "main"


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/launch4j/bugs/212/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #212

  • JPDelprat

    JPDelprat - 2021-03-11

    Thanks a lot.
    I thinks it would be interesting an interesting fix, because it allows to start the executable from "C:\Program Files"' for instance.

    However, in my case, I've found another solution so it's not urgent any more for me.

    Best regards,
    Jean-Pierre

     

Log in to post a comment.