cancel
Showing results for 
Search instead for 
Did you mean: 

set alfresco development enviroment in eclipse

timin
Champ in-the-making
Champ in-the-making
Hi all.

I'm new to alfresco project.

Yesturday  i tried to set up alfresco in eclipse following the steps in the alfresco wiki

http://wiki.alfresco.com/wiki/Alfresco_on_Eclipse

it seems that the guide is incorrect or i do something wrong…

I've installed eclipse version 3.7.1,
tomcat 6
mysql
and all other software as recommended.

i've set up the eclipse enviroment accordinally…

i've downloaded the latest version from svn.

But once i tried to ctreate a new project and import there sources from previously created fresco_svn folder a number of errors appeared in it. Here trhey are:


Archive for required library: 'lib/spring/org.springframework.spring-library-3.0.5.RELEASE.libd' in project 'SystemBuildTest' cannot be read or is not a valid ZIP file   SystemBuildTest Build path   Build Path Problem

Invalid character constant   ADMLuceneTest.java   /Repository/source/java/org/alfresco/repo/search/impl/lucene   line 554   Java Problem

Project 'Extension Samples' is missing required source folder: 'source/java'   Extension Samples      Build path   Build Path Problem

Project 'SystemBuildTest' is missing required library: '/Web-Client/build/dist'   SystemBuildTest      Build path   Build Path Problem

The project cannot be built until build path errors are resolved   Extension Samples      Unknown   Java Problem

The project cannot be built until build path errors are resolved   SystemBuildTest      Unknown   Java Problem

The project was not built due to "Could not delete '/SDK Basic AMP/build/classes/org'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent   SDK Basic AMP      Unknown   Java Problem
What should be done to fix that all?
Should i exclude the problematic projects?


the error in the Repository seems clear when you open the java file

 mlText.addValue(Locale.CHINESE, new String(new char[] { (char) ('香' + orderTextCount) }) + " 香蕉");


The '香'  is certainly a wrong character, so do we need to change somehow the encoding to utf-8 and if so than how?


Thanks in advance.
13 REPLIES 13

mrogers
Star Contributor
Star Contributor
In Eclipse make sure your charater set is UTF-8.   There's a setting in the project properties.

timin
Champ in-the-making
Champ in-the-making
Thanks a lot i'll certainly check, but what about others errors. Say the first one


Archive for required library: 'lib/spring/org.springframework.spring-library-3.0.5.RELEASE.libd' in project 'SystemBuildTest' cannot be read or is not a valid ZIP file   SystemBuildTest Build path   Build Path Problem

Thanks

timin
Champ in-the-making
Champ in-the-making
Hi all!!!

now i've finally built the project succesfully and even run on tomcat. But in eclipse project there are still more than 100 errors of the type …cannot be resolved to a type. Strange everything seems have been compiled ok and works fine Smiley Happy is it ok?

Thanks

mrogers
Star Contributor
Star Contributor
It may be that you are building an obsolete project, but without more details there's no way to help.

timin
Champ in-the-making
Champ in-the-making
Thanks for reply. It certainly looks like an old version. While building the project i'm constantly getting deprecated method warnings. But i've downloaded it yersturday from http://svn.alfresco.com/repos/alfresco-open-mirror.

The build number i will see only in the evening when i get home Smiley Happy

Thanks.

mrogers
Star Contributor
Star Contributor
Yes there are deprecated warnings.   You can ignore them.

johnson
Champ in-the-making
Champ in-the-making
Hi,

I'm sorry for replying a relatively old post, but unfortunately I have the same problem and can't figure out how you resolved it. I just checkout revision 33365 of the alfresco public svn mirror (corresponding to alfresco 4.0.d). I am getting similar errors. Here is the complete list of my 6 errors:

Description   Resource   Path   Location   Type
1- Archive for required library: 'lib/spring/org.springframework.spring-library-3.0.5.RELEASE.libd' in project 'SystemBuildTest' cannot be read or is not a valid ZIP file   SystemBuildTest      Build path   Build Path Problem
2- Project 'Extension Samples' is missing required source folder: 'source/java'   Extension Samples      Build path   Build Path Problem
3- Project 'SystemBuildTest' is missing required library: '/Web-Client/build/dist'   SystemBuildTest      Build path   Build Path Problem
4- The project cannot be built until build path errors are resolved   Extension Samples      Unknown   Java Problem
5- The project cannot be built until build path errors are resolved   SystemBuildTest      Unknown   Java Problem
6- The type ArticleAspect must implement the inherited abstract method CopyServicePolicies.OnCopyNodePolicy.getCopyCallback(QName, CopyDetails)   ArticleAspect.java   /Knowledge Base/source/java/org/alfresco/module/knowledgeBase   line 58   Java Problem

mrogers
Star Contributor
Star Contributor
Don't know what those projects are.    They are not needed.

ggoutham
Champ in-the-making
Champ in-the-making
Hi timin i am completely new to the alfresco development i have installed alfresco community 4.2a can you please tell me the steps that you followed to configure the alfresco repository in eclipse and can you please tell me which eclipse version you are configured
I am searching the web regarding this but unable to find.
Please help me…..

Thanks in advance