简体   繁体   English

解决进口日食的步骤?

[英]Steps to resolve the imports in eclipse?

Firstly, I have seen several question related to this issue but it seems like those questions might be some steps ahead of my understanding. 首先,我已经看到了几个与此问题相关的问题,但似乎这些问题可能比我的理解要先进一些。

I am fairly new to java and consider myself as a self learning beginner. 我对Java相当陌生,并认为自己是一个自学的初学者。 Mostly I face this problem where I do an import . 通常,我在导入时会遇到此问题。 I need it because that import is linked with the use of some really nice and powerful function(s), but always fail if import does not work and end up not using that. 我需要它,因为该导入与某些非常好的功能强大的功能相关联,但是如果导入不起作用总是失败,并最终不使用它。

The message is, eg "The import com.google can not be resolved". 消息为例如“无法解析导入com.google”。

I have been using eclipse in Ubuntu. 我一直在Ubuntu中使用eclipse。

After trying some of the given solutions without being able to view them in the proper context, I already have messed up my eclipse environment and the trouble is still there. 在尝试了某些给定的解决方案而无法在适当的上下文中查看它们之后,我已经搞砸了日食环境,麻烦仍然存在。

Can anybody kindly show me the complete steps of doing these imports successfully in eclipse for java? 有人可以向我展示在eclipse for Java中成功完成这些导入的完整步骤吗?

For using 3rd party jars you need to add the jars in the build path. 要使用3rd party jar,您需要在构建路径中添加jar。

Follow the following step 请按照以下步骤

  1. right click project 右键项目
  2. click build path 点击构建路径
  3. click libraries tab 单击库选项卡
  4. then add external jar 然后添加外部罐子

Now give the path of the jar location 现在给出罐子位置的路径

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

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