This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes what should be given to classpath in build.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "what should be given to classpath in build.xml?" Watch "what should be given to classpath in build.xml?" New topic

what should be given to classpath in build.xml?

preshen dasane

Joined: Nov 20, 2008
Posts: 7
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">
<!-- 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"/>
<!-- Other include files -->
<fileset dir="${lib}">
<include name="**/*.jar"/>
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"/>

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?
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9947

"newer come"

Please check your private message for a message from JavaRanch.

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: what should be given to classpath in build.xml?
Similar Threads
Ant - Directory not created
problem in making jar and war based on the 'src' package hierarchy!
Simple & Basic EJB application -- Help is needed
basic question: abt properties file and build xml
Build failed- ejb3.deployer not found