简体   繁体   中英

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. 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".

I have been using eclipse in Ubuntu.

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?

For using 3rd party jars you need to add the jars in the build path.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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