gpt4 book ai didi

blackberry - 在 black berry 中创建项目时 xml 文件出错

转载 作者:行者123 更新时间:2023-12-01 11:55:25 28 4
gpt4 key购买 nike

我刚刚在eclipse中新建了一个项目,一创建就出现下面的错误

InvalidRegex:
Pattern value '([a-zA-Z_]{1,63}[\s-a-zA-Z_0-9.]{0,63}[;]?)*' is not a valid
regular expression.
The reported error was: ''-' is an invalid character range.
Write '\-'.' at column '{2}'.
BlackBerry_App_Descriptor.xml Unknown XML Problem.

这是当我们的系统中存在 eclipse 不支持的 jre7 时我们会遇到的问题

enter image description here

这里有什么问题?我该如何纠正这个问题?谢谢

最佳答案

Google 显示这与 Java 7 有关。检查这两个链接: http://supportforums.blackberry.com/t5/Java-Development/problem-with-the-BlackBerry-App-Descriptor-xml-in-Eclipse-Plug/td-p/959029http://cdrussell.blogspot.com/2011/09/blackberry-eclipse-error-invalid-regex.html

第二个告诉:

Turns out this could be caused by having Java JRE 7 installed on your machine. The BlackBerry plugin doesn't support this yet, Eclipse might be trying to use that.

The fix? You simply have to edit the eclipse.ini that will live in the same directory as your eclipse.exe that you use to start the IDE. Closing Eclipse and making a backup of eclipse.ini before you do this would be a good idea.

Find the line "openFile" and immediately after, add the following:

-vm C:/Program Files/Java/jre6/bin/javaw.exe [or wherever your jre6 directory might be]

Cross your fingers and restart Eclipse. Rebuild your projects.

关于blackberry - 在 black berry 中创建项目时 xml 文件出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7729802/

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