bdshahab bdshahab - 27 days ago 7
Java Question

Run a runnable JAR file in a folder / Directory with a UTF-8 style name

When I create a jar file in ordinary way like this:
C:/myFolder/program.jar
It could be run without any problem, but when I create abnormal name (UTF-8 languages) for folder like this:
C:/پوشه/program.jar
program cannot run and OS (Windows for me) says this:
Title:
Java Virtual Machine Launcher
Context:
Error: Unable to access jarFile C:/پوشه/program.jar

Is it possible to solve this problem?

Answer

This problem could be solved by this solution: Error: Unable to access jarfile. Encoding issue

However, exe files don't need these additional settings and those files will be execute in any case.