cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco sdk in Eclipse

nramdoo
Champ in-the-making
Champ in-the-making
Hello,
I tried to install the alfresco4.0c sdk on Eclipse (indigo or Helios). I download tthe relatied sdk zip file. when i  imported the sdk in eclipse, I did the necessary actions to add the javasources for the the projetc SDK AlfrescoEmbedded and SDK AlfrescoRemote.
I have no error for these two projets. For the remaining projects (SDK Basic AMP, SDK CustoActions ….), I have many errors.

For the sdk CustomAction, in the LoggerActionExecutor.java, I have The import org.alfresco.service cannot be resolve.
For the public class DemoComponent extends AbstractModuleComponent ind DemoComponent.java (SDK Basic AMP) I have the following error
The type org.springframework.beans.factory.BeanNameAware cannot be resolved. It is indirectly referenced from required .class files

My java path seems to be  bad. i tried many things without success

How can i fix this problems ?
Thank you
N. RAMDOO
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Have you fixed the .classpath files? 

http://wiki.alfresco.com/wiki/Talk:Alfresco_SDK_4.0

nramdoo
Champ in-the-making
Champ in-the-making
Hello
This solved my problems.
Thank you for this very fast answer.
N ramdoo

stalinlouis
Champ in-the-making
Champ in-the-making
Description   Resource   Path   Location   Type
Project 'Sample CLient' is missing required library: 'lib/cxf-2.2.2.jar'   Sample CLient      Build path   Build Path Problem
Unknown         Unknown   Java Exception Breakpoint
Unknown         Unknown   Java Exception Breakpoint
The project cannot be built until build path errors are resolved   Sample CLient      Unknown   Java Problem
The field ContentServicePolicies.ON_CONTENT_READ is deprecated   ContentHitsAspect.java   /SDK CustomAspect/source/org/alfresco/sample   line 167   Java Problem
The field ContentServicePolicies.ON_CONTENT_UPDATE is deprecated   ContentHitsAspect.java   /SDK CustomAspect/source/org/alfresco/sample   line 171   Java Problem
The serializable class AddAspectDialog does not declare a static final serialVersionUID field of type long   AddAspectDialog.java   /SDK CustomDialog/source/org/alfresco/sample   line 33   Java Problem
The serializable class CustomCreateContentWizard does not declare a static final serialVersionUID field of type long   CustomCreateContentWizard.java   /SDK CustomWizard/source/org/alfresco/sample   line 39   Java Problem
The serializable class CustomLoginBean does not declare a static final serialVersionUID field of type long   CustomLoginBean.java   /SDK CustomLogin/source/org/alfresco/sample   line 27   Java Problem
The serializable class TagActionHandler does not declare a static final serialVersionUID field of type long   TagActionHandler.java   /SDK TaggingSample/source/org/alfresco/sample   line 36   Java Problem