Hi
I recently started learning J2EE using this nice tutorial on the Sun website. I got into chapter 3 and there was a discussion about a bundle of example web applications generally... these are hello1, hello2, hello3 and 6 of duke's bookstore examples.
I was just following tutorial and I managed to build and deploy hello1 example, it was cool. But then hello2 didn't work. I tried many many chekings amendments etc... but it is over my skill. I also found out that none of duke's bookstore examples are working, and it is for a very same reason as hello2 example. However hello3 example works fine again.
btw, I wanted to use NB (6.1) but attached nb project files for these tutorials are somewhat not compatible with the latest 6.1 version. at least, my nb did not let me to open these. so i end up with ant. and here is the error which is given by ant, and when i am in a hello2 dir and type "ant" into my command prompt.
-pre-init:
init:
default-ear:
-pre-compile:
bpp-actual-compilation:
[echo] Compiling hello2
[javac] Compiling 2 source files to D:\Java\tutorial\examples\web\hello2\build\web\WEB-INF\classes
BUILD FAILED
D:\Java\tutorial\examples\bp-project\command-line-ant-tasks.xml:92: D:\Java\tutorial\examples\web\hello2\"D:\Java\AppServer" not found.
Total time: 0 seconds
I hope you are able to catch what is this message talking about, i do not understand why is this ant trying to look into hello2 dir concatenated with appserv root directory at first place.
My appserv is installed in D:\\Java\\AppServer
and tutorial is located in D:\\Java\\tutorial
I am sure that my bp-project\\build.properties is configured pretty well (unless it is not :).
and this is the extract of command-line-and-tasks.xml, of that ellement which has line 92 in it...
<target name="bpp-actual-compilation" if="has-java-sources">
<echo>Compiling ${module.name}</echo>
<mkdir dir="${build.classes.dir}"/>
<javac srcdir="${src.dir}"
source="${default.javac.source}"
target="${default.javac.target}"
excludes="${javac.excludes}"
debug="${javac.debug}"
debuglevel="${javac.debuglevel}"
destdir="${build.classes.dir}"
includes="**">
<classpath refid="classpath"/>
</javac>
</target>
so i don't know, what is going on? why is it constructing such a weird path which cannot be valid obviously?
Edited by: wandue on Sep 22, 2008 6:59 AM