简体   繁体   English

Eclipse中缺少Java构建路径选项

[英]Missing java build path option in eclipse

I'm developing a mobile app using phonegap. 我正在使用phonegap开发移动应用程序。 When i tried to add third party java libs to android platform by right clicking on project in eclipse , there's no 'java build path' option for adding the java libs . 当我尝试通过右键单击eclipse中的项目将第三方Java库添加到android平台时,没有用于添加Java库的“ java构建路径”选项。 I believe Eclipse do not recognize phonegap project as a java project , so the option is not visible. 我相信Eclipse无法将phonegap项目识别为java项目,因此该选项不可见。 I wonder why most of the online tutorial show such option available in phonegap + eclipse project ? 我不知道为什么大多数在线教程都显示了phonegap + eclipse项目中可用的此类选项? Did i miss something ? 我错过了什么 ? or is there any alternative solution? 还是有其他替代解决方案?

Phonegap should have this option, like any other project in Eclipse Phonegap应该具有此选项,就像Eclipse中的任何其他项目一样

If its grayed out then there may be an error within your project. 如果其变灰,则说明您的项目中可能有错误。

这是到达构建路径的方法

Can you provide any more detailed errors? 您能否提供更多详细的错误? Have you tried changing the build path target? 您是否尝试过更改构建路径目标? Maybe double check to make sure its referring to your JRE as well? 也许仔细检查以确保其也引用您的JRE?

I just realised that those online tutorial doing it in eclipse + android environment and I'm doing it in Eclipse + multi-platform JavaScript environment. 我刚刚意识到那些在线教程是在eclipse + android环境中进行的,而我是在Eclipse +多平台JavaScript环境中进行的。 I thought eclipse is smart enough to detect the android code within the phonegap project . 我认为eclipse足够聪明,可以检测phonegap项目中的android代码。

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

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