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?
Solved! Go to Solution.
Views
Replies
Total Likes
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/
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
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/
Views
Replies
Total Likes
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 :
Then the import issue should be solved .
Some Reference Forum post:-
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies