The import info.geometrixx cannot be resolved | Community
Skip to main content
December 8, 2015
Solved

The import info.geometrixx cannot be resolved

  • December 8, 2015
  • 4 replies
  • 2024 views

I am using archetype 10 project. I created a new class file under sample.core project. I am trying to access GeoHelper class by importing below:

import info.geometrixx.commons.util.GeoHelper;

I am getting a notification like below: 

The import info.geometrixx cannot be resolved

How to resolve this issue? How can I import the jar file? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

Just Verifying,

Once you have added this class in eclipse, did you took the build to AEM?

Build is process where these java files gets deployed to AEM using maven as a single jar,

If not take a look at http://www.aemcq5tutorials.com/tutorials/create-osgi-bundle-in-aem/

4 replies

edubey
Level 10
December 8, 2015

Are you seeing this error when you use this in JSP in component?

Make sure you are exporting the package in which you have added this class.

December 8, 2015

edubey wrote...

Are you seeing this error when you use this in JSP in component?

Make sure you are exporting the package in which you have added this class.

 

How can I export the JAR file and which JAR file should I export? I believe that this project is configured with all the JARs required for the development. Do I need to create a lib folder, add the JAR file and edit pom.xml file?

edubey
edubeyAccepted solution
Level 10
December 8, 2015

Just Verifying,

Once you have added this class in eclipse, did you took the build to AEM?

Build is process where these java files gets deployed to AEM using maven as a single jar,

If not take a look at http://www.aemcq5tutorials.com/tutorials/create-osgi-bundle-in-aem/

kautuk_sahni
Community Manager
Community Manager
December 8, 2015

Hi

Please have a look at this stackoverflow question.

Link:- http://stackoverflow.com/questions/16918959/import-cannot-be-resolved

//Import *** could not be resolved '

 

Solution:-  

Right click on project - >BuildPath - >Configure BuildPath - >Libraries tab - >

Double click on JRE SYSTEM LIBRARY - >Then select alternate JRE

 

If the project is Maven, you can try this way :

  1. right click the "Maven Dependencies"-->"Build Path"-->"Remove from the build path";
  2. right click the project ,navigate to "Maven"--->"Update project....";

Then the import issue should be solved .

Some Reference Forum post:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__w4p1-hello_i_haveap.html

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__ewf3-hi_all_1_i_have.html

 

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni