简体   繁体   English

使用UTF-8样式名称在文件夹/目录中运行可运行的JAR文件

[英]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 当我以这种普通方式创建一个jar文件时:C:/myFolder/program.jar它可以毫无问题地运行,但是当我为这样的文件夹创建异常名称(UTF-8语言)时:C:/پوشه/ program.jar程序无法运行,并且OS(对我而言是Windows)这样说:标题:Java虚拟机启动器上下文:错误:无法访问jarFile C:/پوشه/ program.jar

Is it possible to solve this problem? 有可能解决这个问题吗?

This problem could be solved by this solution: Error: Unable to access jarfile. 此解决方案可以解决此问题: 错误:无法访问jarfile。 Encoding issue 编码问题

However, exe files don't need these additional settings and those files will be execute in any case. 但是, exe文件不需要这些其他设置,并且这些文件在任何情况下都将执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM