cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco SDK: Import the Alfresco Eclipse Projects

sbudrez
Champ in-the-making
Champ in-the-making
Hi to all,
I am new to alfresco and I want to explore and customize it for my thesis at university
I'm not english so my language might be not so good  Smiley Happy
I just hope I'm posting in the right section of the forum

I was reading the wiki, and found the best thing to start exploring alfresco is to use the SDK (http://wiki.alfresco.com/wiki/Alfresco_SDK_3.2)
As the wiki says, I've installed: JDK, Eclipse, MySQL and alfresco community edition 3.2
Then I've set Eclipse Compiler Compliance Level to 6.0 (well it was alredy configured that way) and added the alfresco bin folder to the system PATH (I haven't understand what does this exactly mean, but I've done it  Smiley Happy )
Next I've followed the wiki instructions for importing the Alfresco Eclipse Projects, but i get the error:
Message: Project 'SDK AlfrescoEmbedded' is missing required library: 'G:\bamboo-home\xml-data\build-dir\ALF-COMMUNITY\root\build\assemble\sdk\lib\server\alfresco-core-3.2.jar'
As i found later on the wiki, it is a known problem, solved by changing the 2 .classpath files
But how do I remove the project to re-import it again??
I've tryed to use the Project -> Clean command in the eclipse menu, and even manually removed the projects folder from the workrspace (from <workplace>\.metadata\.plugins\org.eclipse.core.resources\.projects), but it seems I can't get them removed to re-import them again.  :cry:

Thanks for any hint!
4 REPLIES 4

sbudrez
Champ in-the-making
Champ in-the-making
Well since I' have found no solutions i have drastically removed and installed eclipse again
This time I've corrected the classpath files before the import of the projects, so I managed to get them correctly

As the wiki says, the next step is to "Reference libraries in SDK AlfrescoEmbedded project"
I follow istructions until i have to add JARs from the dependencies folder as shown in th figure below:
[img]http://img515.imageshack.us/img515/5064/sshot.jpg[/img]

First question:
I have two dependencies folder in my alfresco-community-sdk-3.2 folder: one under lib/remote and ine under lib/server. Which is the correct one for my purpose?
Second question:
How do I browse to the dependencies folder to add the jars? I can only see the imported projects in the window  Smiley Indifferent

rtoepfer
Champ in-the-making
Champ in-the-making
I believe you have to use the "Add External JARS" command and then reference the dependencies in the server folder.  This seemed to work for me.

acarpine
Champ in-the-making
Champ in-the-making
Well since I' have found no solutions i have drastically removed and installed eclipse again
This time I've corrected the classpath files before the import of the projects, so I managed to get them correctly
[…]

I had the same problem and I solved it deleting and then re-importing the alfresco sdk (the classpath was already correct).
In my case there was no need to re-install eclipse.

mrogers
Star Contributor
Star Contributor
No of course there's no need to re-install Eclipse.  

If you want you can delete and re-import individual projects.   But even then that's not necessary for a broken classpath.