File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Author

what should be given to classpath in build.xml?

preshen dasane
Greenhorn

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

Joined: Jul 20, 2005
Posts: 10048
    
163

"newer come"

Please check your private message for a message from JavaRanch.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what should be given to classpath in build.xml?