gpt4 book ai didi

Java 桌面应用程序无法从具有俄语名称的文件夹运行

转载 作者:搜寻专家 更新时间:2023-11-01 03:27:21 24 4
gpt4 key购买 nike

我使用 Java DB 在 netbeans 上创建了桌面应用程序。当用户运行它时它获得连接,并且它在所有计算机上工作正常,但是当我将它复制到具有俄语名称的文件夹时,我的意思是文件夹名称是俄语,所以我的程序的路径显然将包含俄语特征,它不运行,特别是它运行但无法连接到 Derby,我的启动画面出现不到一秒钟,程序关闭。我能做什么?请帮忙。

最佳答案

大胆猜测 - 听起来像是连接字符串编码问题。这可能值得一看。

来自 http://db.apache.org/derby/docs/10.2/tools/tools-single.html

derby.ui.codeset

Function Set this property to a supported character encoding value when using one of the Derby tools with a language not supported by your default system. Syntax

derby.ui.codeset=derbyval

where derbyval is a supported character encoding value, for example, UTF8 (see Sample Character Encodings). Example The following command line specifies to run ij using the Japanese territory (territory=ja_JP) using Japanese Latin Kanji mixed encoding (codeset=Cp939):

java -Dderby.ui.territory=ja_JP -Dderby.ui.codeset=Cp939 -Dij.protocol=jdbc:derby: org.apache.derby.tools.ij

The following table contains a sampling of character encodings supported by the IBM Application Developer Kit. To see the full list, go to http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html. Table 2. Sample Character Encodings

关于Java 桌面应用程序无法从具有俄语名称的文件夹运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10096560/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com