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
Sorry - replied to an old post for some reason.   Need to get used to the new forums.

pankaj_dell
Champ in-the-making
Champ in-the-making
Hi all,

I have checked out alfresco source in windows on my local system ans when building projects in eclipse with ant then following errors come  —

Error occurred during initialization of VM     [javac] Error: A fatal exception has occurred. Program will exit.     [javac] Could not reserve enough space for object heap



Please help me asap…

aitbenmouh
Champ in-the-making
Champ in-the-making
Hello everybody i have too problem with installing my SDK into eclipse environement i followed the doc in wiki and i still have some problem, I imported SDK 4.2.C in eclipse and when i run the SDK_FirstFoundationClient as a java application this stack of exceptions appear :

mars 18, 2013 1:17:44 PM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
mars 18, 2013 1:17:53 PM org.activiti.engine.impl.jobexecutor.JobExecutor start
INFO: Starting up the JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor].
mars 18, 2013 1:17:53 PM org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable run
INFO: JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor] starting to acquire jobs
Exception in thread "main" org.alfresco.error.AlfrescoRuntimeException: 02180001 Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:248)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:68)
   at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:179)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:183)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
   at org.alfresco.util.BaseApplicationContextHelper.getApplicationContext(BaseApplicationContextHelper.java:67)
   at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:46)
   at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:63)

If someone can help thinks i verified the path is correct but even i obtain the some error !!

Rsolved it was just a problem with my configuration file and before run the project you have to compile it with ANt