使用UTF-8样式名称在文件夹/目录中运行可运行的JAR文件 [英] Run a runnable JAR file in a folder / Directory with a UTF-8 style name

查看:183
本文介绍了使用UTF-8样式名称在文件夹/目录中运行可运行的JAR文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我以这样的普通方式创建一个jar文件时:
C:/myFolder/program.jar
它可以毫无问题地运行,但是当我创建异常名称(UTF-8语言)时)对于像这样的文件夹:
C:/پوشه/ program.jar
程序无法运行和操作系统(对我来说是Windows)说:
标题:
Java虚拟机启动器
上下文:
错误:无法访问jarFile C:/پوشه/ program.jar

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

是否可以解决此问题?

推荐答案

此问题可以通过此解决方案解决:
错误:无法访问jarfile。编码问题

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

但是, exe 文件不需要这些额外设置,并且无论如何都会执行这些文件。

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

这篇关于使用UTF-8样式名称在文件夹/目录中运行可运行的JAR文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆