I'm not trying to be different or anything, and I know that it's a
common problem, but please check back over the thread.
Specifically,
> >>>> <>D:\Program_Files\apache\xindice-1.1b4\java\examples>ant
> >>>> Unable to locate tools.jar. Expected to find it in C:\Program
> >>>> Files\Java\j2re1.4.2_05\lib\tools.jar
> >>>
> >>JAVA_HOME should point
> >>to j2se SDK installation. In your case, this is j2se RE
> >
> >Not so.
>
> See, directory in path above is "j2re1.4.2_05", which means "Java2 RE
> 1.4.2". You need "Java2 SDK", directory will be "j2sdk1.4.2", and it
> will have tools.jar.
But look what %JAVA_HOME% is set to:
C:\Documents and Settings\Rees>echo %JAVA_HOME%
D:\Program_Files\Java\j2sdk1.4.2_05
As I was attempting to point out last night before I went home, I
succeeded in compiling both Tomcat and Xindice. I'm running Tomcat out
of
C:\Documents and Settings\Rees>echo %CATALINA_HOME%
D:\Program_Files\apache\jakarta-tomcat-5.0.25-src\jakarta-tomcat-5\build
which seems a little strange, but I didn't see anything that said to
move the build product. After building Xindice, I dropped xindice.war
into Tomcat, as you can see here (sorry about the Japanese):
-----------------------------------------------------------
C:\Documents and Settings\Rees>dir %CATALINA_HOME%\webapps
ドライブ D のボリューム ラベルは ボリューム です
ボリューム シリアル番号は xxxx-xxxx です
D:\Program_Files\apache\jakarta-tomcat-5.0.25-src\jakarta-tomcat-5\build\webapps
のディレクトリ
2004/07/14 19:18 <DIR> .
2004/07/14 19:18 <DIR> ..
2004/07/14 19:18 <DIR> addressbook
2004/07/14 18:53 4,269,255 addressbook.war
2004/07/09 14:52 <DIR> balancer
2004/07/09 14:52 <DIR> jsp-examples
2004/07/09 14:53 <DIR> ROOT
2004/07/09 14:52 <DIR> servlets-examples
2004/07/09 14:53 <DIR> tomcat-docs
2004/07/09 14:52 <DIR> webdav
2004/07/09 20:38 <DIR> xindice
2004/07/09 20:10 4,305,828 xindice.war
2 個のファイル 8,575,083 バイト
10 個のディレクトリ 27,427,053,568 バイトの空き領域
-----------------------------------------------------------
And, incidentally, here are the build and dist directories from
compiling xindice:
-----------------------------------------------------------
C:\Documents and Settings\Rees>dir %XINDICE_HOME%\build
ドライブ D のボリューム ラベルは ボリューム です
ボリューム シリアル番号は xxxx-xxxx です
D:\Program_Files\apache\xindice-1.1b4\build のディレクトリ
2004/07/14 18:53 <DIR> .
2004/07/14 18:53 <DIR> ..
2004/07/14 18:53 <DIR> addressbook-classes
2004/07/09 20:10 <DIR> classes
2004/07/09 20:10 <DIR> classes-tests
2004/07/14 18:53 <DIR> guide-classes
2004/07/09 20:10 <DIR> test-results
2004/07/09 20:10 <DIR> war-bin
0 個のファイル 0 バイト
8 個のディレクトリ 27,427,053,568 バイトの空き領域
C:\Documents and Settings\Rees>dir %XINDICE_HOME%\dist
ドライブ D のボリューム ラベルは ボリューム です
ボリューム シリアル番号は xxxx-xxxx です
D:\Program_Files\apache\xindice-1.1b4\dist のディレクトリ
2004/07/14 18:53 <DIR> .
2004/07/14 18:53 <DIR> ..
2004/07/14 18:53 4,269,255 addressbook.war
2004/07/09 20:10 461,825 xindice-1.1b4.jar
2004/07/09 20:10 4,305,828 xindice-1.1b4.war
2004/07/09 20:10 1,543 xindice-1.1b4.xml
2004/07/14 18:53 10,490 xindice-guide.jar
5 個のファイル 9,048,941 バイト
2 個のディレクトリ 27,427,053,568 バイトの空き領域
-----------------------------------------------------------
Now, the reason I was compiling the examples by themselves was that I am
clueless, and didn't think to look in the build directory for the build
products. The build messages clued me in.
I don't remember getting complaints about tools.jar when compiling the
entire xindice. So I thought maybe it was just that the build file for
the examples wasn't getting environment variables set.
Which is why I tried pre-defining CLASSPATH to point to tools.jar, and
that allows the examples to be built by themselves, in spite of the
complaint about not being able to find tools.jar on the C: drive (where
they are not, of course).
I'd like to work out some patches for the build files, but I'll have to
negotiate with the boss about the time first.
--
Joel <[EMAIL PROTECTED]>