내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

The import info.geometrixx cannot be resolved

Avatar

이전 커뮤니티 멤버

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? 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 10

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 답변 개

Avatar

Level 10

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.

Avatar

이전 커뮤니티 멤버

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?

Avatar

정확한 답변 작성자:
Level 10

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/

Avatar

Administrator

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

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

 

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni