而创造的黑色浆果的一个项目中的XML文件时出错 [英] Error in xml file while creating a project in black berry

查看:152
本文介绍了而创造的黑色浆果的一个项目中的XML文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在Eclipse中创建一个新的项目,一旦它被创造,它与下面的错误

I just created a new project in the eclipse and as soon as it was created, it is created with the error below

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.

这是当在我们的系统jre7这是不被支持Eclipse,我们会得到这个问题

This is the problem which we will get when there is jre7 in our system which is not supported by eclipse

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

What is the problem here? How can i rectify this? thank you

推荐答案

谷歌展示了这是Java相关7.检查这两个环节:
<一href=\"http://supportforums.blackberry.com/t5/Java-Development/problem-with-the-BlackBerry-App-Descriptor-xml-in-Eclipse-Plug/td-p/959029\">http://supportforums.blackberry.com/t5/Java-Development/problem-with-the-BlackBerry-App-Descriptor-xml-in-Eclipse-Plug/td-p/959029和<一个href=\"http://cdrussell.blogspot.com/2011/09/blackberry-eclipse-error-invalid-regex.html\">http://cdrussell.blogspot.com/2011/09/blackberry-eclipse-error-invalid-regex.html

Google shows this is related to Java 7. Check these two links: http://supportforums.blackberry.com/t5/Java-Development/problem-with-the-BlackBerry-App-Descriptor-xml-in-Eclipse-Plug/td-p/959029 and http://cdrussell.blogspot.com/2011/09/blackberry-eclipse-error-invalid-regex.html

第二个通知:

原来由具有的Java JRE 7上安装,这可能会导致您的
  机。黑莓插件不支持这个呢,Eclipse的可能
  可以尝试使用。

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.

该修补程序?您只需编辑将生活在中的eclipse.ini
  同一目录中您用来启动IDE的eclipse.exe的。
  关闭Eclipse和之前你做这个做的eclipse.ini的备份
  将是一个不错的主意。

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.

查找行中openFile紧接着,添加以下内容:

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

-vm C:/ Program Files文件/的Java / JRE6 /斌/ javaw.exe的[或任何你JRE6目录可能]

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

交叉手指,并重新启动Eclipse。重建项目。

Cross your fingers and restart Eclipse. Rebuild your projects.

这篇关于而创造的黑色浆果的一个项目中的XML文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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