Let's assume I have an executable JAR file called "ascąś©.jar".
When I try to run it with double-click the java.exe process starts but then ends immediately.
When I try to run it from cmd.exe with the command: java -jar "ascąś©.jar"
it returns:
C:\>java -jar "ascąś©.jar"
Error: An unexpected error occurred while trying to open file asc??ę.
or if there isn't such file in current directory:
C:\>java -jar "ascąś©.jar"
Error: Unable to access jarfile asc╣ťę.jar
Same thing happens when there is a Unicode character in directory name. When the name/path doesn't contain Unicode characters the JAR file runs with no problems.
Does anyone have the same issue? Do I need to change some encoding settings in Java? Where can I do this?
My configuration:
Windows 7 Professional SP1 32-bit EN
Java version: 1.7.0_03