I have a folder with Unicode(UTF-8) symbols in its name, for example, Я_Папка, and the folder contains foo.jar.
Now I need to execute the foo.jar:
Active code page: 65001
C:\>java -Dsun.jnu.encode=UTF-8 -jar C:\Я_Папка\foo.jar
Error: Unable to access jarfile C:\Я_Папка\foo.jar
-Dsun.jnu.encode=UTF-8 switch tells java to use UTF-8 encoding for the platform string.
-Dfile.encode=UTF-8 switch can't help - it works only with the contents of files rather than the command line
My question here - how to make -jar switch understand UTF-8 encoding?