cancel
Showing results for 
Search instead for 
Did you mean: 

How to know what Alfresco4 SDK jars to include in Eclipse?

jpearson
Champ in-the-making
Champ in-the-making
I am basing my build on an ant file from some examples in the book "Alfresco Business Solutions" chapter 2 (basically demonstrates the uses of NodeService, Policies and other java services). I have the ant file working well enough for my needs. I will use the ant file for actually building and deploying but I want eclipse to be able to compile and do auto complete so that everything is not all red with errors in eclipse. So I looked at the ant file to see what it includes as its build path which is every jar in the sdk. I tried to do this in eclipse and suddenly realized I had an insane amount of jars. I did eventually, by trial and error, get a set of jars included that works but it just feels like there is a better way. So what is the correct way to do this? How do other people deal with this problem? Just trial and error? By the way I am using Alfresco 4 SDK.
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
You have to download and extract the Alfresco SDK and then you have to import the extracted project in your Eclipse using the import as "Existing project into workspace".

If you need to use the Alfresco Foundation Services API (the Alfresco Java API) you only need to add the SDK Alfresco Embedded project as a project dependency for your Eclipse project.

If you need to implement a remote Alfresco client you only need to add SDK AlfrescoRemote as a project dependency.

Hope this helps.