As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<project default="package-amp"> <property name="module.id" value="my-extensions" /> <property name="src-dir" location="/local/alfresco-src/4.2.1/alfresco/TAGS/ENTERPRISE/V4.2.1/root/projects" /> <property name="3rdparty" location="${src-dir}/3rd-party/lib" /> <property name="core" location="${src-dir}/core/build" /> <property name="repository" location="${src-dir}/repository/build" /> <property name="model" location="${src-dir}/data-model/build" /> <property name="project.dir" value="."/> <property name="build.dir" value="${project.dir}/build"/> <property name="config.dir" value="${project.dir}/config"/> <property name="jar.file" value="${build.dir}/lib/${module.id}.jar"/> <property name="amp.file" value="${build.dir}/dist/${module.id}.amp"/> <target name="mkdirs"> <mkdir dir="${build.dir}/dist" /> <mkdir dir="${build.dir}/lib" /> </target> <path id="class.path"> <dirset dir="${build.dir}" /> <fileset dir="${model}" includes="**/*.class" /> <fileset dir="${3rdparty}" includes="**/*.jar" /> <fileset dir="${core}" includes="**/*.class" /> <fileset dir="${repository}" includes="**/*.class" /> </path> <target name="compile"> <mkdir dir="${build.dir}/classes" /> <javac classpathref="class.path" srcdir="${project.dir}/source" destdir="${build.dir}/classes" /> </target> <target name="package-jar" depends="compile"> <jar destfile="${jar.file}" > <fileset dir="${build.dir}/classes" excludes="**/custom*,**/*Test*" includes="**/*.class" /> </jar> </target> <target name="package-amp" depends="mkdirs, package-jar" description="Package the Module" > <zip destfile="${amp.file}" > <fileset dir="${project.dir}/build" includes="lib/*.jar" /> <fileset dir="${project.dir}" includes="config/**/*.*" excludes="**/module.properties" /> <fileset dir="${project.dir}/config/alfresco/module/${module.id}" includes="module.properties" /> </zip> </target> </project>
<fileset dir="${alfresco.work.home}/tomcat/webapps/alfresco/WEB-INF/lib" includes="*.jar" />
/local/alfresco-src/4.2.1/alfresco/TAGS/ENTERPRISE/V4.2.1/root/projects/repository/build
/local/alfresco-src/4.2.1/alfresco/TAGS/ENTERPRISE/V4.2.1/root/projects/core/build /local/alfresco-src/4.2.1/alfresco/TAGS/ENTERPRISE/V4.2.1/root/projects/data-model/build
The "Cannot find symbol" errors generally occur when you try to reference an undeclared variable in your code. A "Cannot find symbol" error means that the compiler cannot do this. Your code appears to be referring to something that the compiler doesn't understand.
When your code is compiled, the compiler needs to work out what each and every identifier in your code means. As the compiler is going through the code it will find something and know what to do with it or not. Your Cannot find symbol error relates to the identifiers and means that Java cannot figure out what the "symbol" means.
The general causes for a Cannot find symbol error are things like: