cancel
Showing results for 
Search instead for 
Did you mean: 

Error while building from Eclipse.

shibu
Champ in-the-making
Champ in-the-making
I installed Alfresco into Eclipse by following the instructions discussed in http://forums.alfresco.com/forum/developer-discussions/development-environment/tutorial-install-alfr... .
I am using Linux machine. Installed ImageMagic from terminal using app-get.
Created an ANT project and added build.xml also.
While doing Run As->Ant Build ; I am getting following error;


Buildfile: /home/shibu/shibu/Alfresco WS/ALFRESCOSVN/alfresco/HEAD/root/build.xml
init:
     [echo] user.home = /home/shibu
     [echo] version.number = 4.2.d
clean-core:
   [delete] Deleting directory /home/shibu/shibu/Alfresco WS/ALFRESCOSVN/alfresco/HEAD/root/projects/core/build/classes
clean-datamodel:
clean-jlan:
clean-mbeans:
clean-deployment:
clean-repository:
clean-wdrdeployment:
clean-remoteapi:
clean-jndi:
clean-catalinavirtual:
clean-webframeworkcommons:
clean-webclient:
clean-system-build-test:
clean-webclient-projects:
clean-slingshot:
clean-slingshot-projects:
clean-webeditor-plugin:
clean-webeditor:
clean-webeditor-customersite-sample:
clean-webeditor-projects:
clean-webserviceclient:
clean-solr:
clean-file-transfer-receiver:
clean-projects:
clean-spp:
clean-wcmquickstart:
clean-wcmquickstart-share:
clean-wcmquickstart-clientapi:
clean-wcmquickstart-webapp:
clean-modules:
clean-webclient-tomcat-deploy:
clean-application-tomcat-deploy:
clean-virtual-tomcat-deploy:
clean-tomcat-deployments:
clean:
compile-core:
    [mkdir] Created dir: /home/shibu/shibu/Alfresco WS/ALFRESCOSVN/alfresco/HEAD/root/projects/core/build/classes
    [javac] Compiling 174 source files to /home/shibu/shibu/Alfresco WS/ALFRESCOSVN/alfresco/HEAD/root/projects/core/build/classes
    [javac] javac: invalid flag: WS/ALFRESCOSVN/alfresco/HEAD/root/projects/core/build/classes:/home/shibu/shibu/Alfresco
    [javac] Usage: javac <options> <source files>
    [javac] use -help for a list of possible options

BUILD FAILED
/home/shibu/shibu/Alfresco WS/ALFRESCOSVN/alfresco/HEAD/root/projects.xml:25: The following error occurred while executing this line:
/home/shibu/shibu/Alfresco WS/ALFRESCOSVN/alfresco/HEAD/root/macros.xml:68: The following error occurred while executing this line:
/home/shibu/shibu/Alfresco WS/ALFRESCOSVN/alfresco/HEAD/root/macros.xml:41: Compile failed; see the compiler error output for details.

Total time: 1 second



Plaese help me to fix it.
3 REPLIES 3

g_rathod
Star Contributor
Star Contributor
Your build.xml is trying to compile .java files so make sure your source folder having only .java files, it seems you have another files exists into compilation so it wont able to compile.

shibu
Champ in-the-making
Champ in-the-making
I just imported files except the ones starting with SDK from “/workspace/ALFRESCO/alfresco/HEAD/root/projects” into my eclipse. Created an ANT project and added build.xml also.
So , now all those projects are imported. Should I need to avoid any other projects to avoid the existence of files other than .java?

mrogers
Star Contributor
Star Contributor
It looks like there is a space character confusing your javac command line.  Easiest fis is to rename your alfresco space WS folder.