• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what should be given to classpath in build.xml?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the value should be given to property name, classpath in build.xml file?
My building part of the build.xml file is below.
<!-- Building -->
<target name="build" depends="init">
<javac srcdir="${root}" destdir="${classdir}" debug="true"
includes="**/*.java" excludes="**/unittest/*.java">
<classpath>
<!-- use the value of the ${classpath} property in the
classpath -->
<pathelement path="${classpath}"/>
<!-- include all jar files -->
<!-- Files needed to be deployed -->
<fileset dir="${include}">
<include name="**/*.jar"/>
</fileset>
<!-- Other include files -->
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
My property defining part is below.
<!-- Project Paths -->
<property name="classdir" value="${basedir}/classes"/>
<property name="root" value="${basedir}/src"/>
<property name="src" value="${root}/com/atlinkcom/bestcarelab"/>
<property name="lib" value="${basedir}/lib"/>
<property name="include" value="${basedir}/include"/>
<property name="view" value="${root}/com/atlinkcom/bestcarelab/view"/>


<!-- Deployment Descriptors -->
<property name="deployDesc" value="${basedir}/build/deploymentdescriptors"/>

<!-- WAR related info. -->
<property name="warDir" value="${basedir}/build/war/WEB-INF"/>
<property name="warDirClass" value="${basedir}/build/war/WEB-INF/classes"/>
<property name="warDir.out" value="${basedir}/build/"/>
<property name="warDirResult" value="${basedir}/build/war"/>
<property name="warFile" value="sos.war"/>

<!-- JAR related info. -->
<property name="jarDir" value="${basedir}/build/jar"/>
<property name="jarDir.out" value="${basedir}/build/"/>
<property name="jarFile" value="bestcarelab.jar"/>



<!-- Create Folders -->
<mkdir dir="${basedir}/build/jar"/>
<mkdir dir="${basedir}/build/war"/>
<mkdir dir="${warDir}/tlds"/>

<!-- Deploy Folder -->
<property name="jboss.deploy" value="C:\jboss-4.0.5.GA\server\default\deploy"/>
</target>

</target>
And the error i got are below.

1.The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.jsp.PageContext. Fix the build path then try building this project
2.The type javax.servlet.jsp.PageContext cannot be resolved. It is indirectly referenced from required .class filesViewFormatter.javaBCL/src/com/atlinkcom/bestcarelab/formline 1Java Problem

I think these errors happened due to lack of classpath value.So tel me please what should be given to classpath?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"newer come"

Please check your private message for a message from JavaRanch.
reply
    Bookmark Topic Watch Topic
  • New Topic