put the 3rd party library files on a shared folder, let's say \\lib-server\libraries, and map \\lib-server as z: drive, so we can access z:\libraries for library files
and my ant is using the classpath z:\libraries to build the project, it works fine when I run it in command line, but failed when running in Cruise.
the output showing error message:
[javac] ***\***\***\TestImpl.java:2: package oracle.jbo.server does not exist
[javac] import oracle.jbo.server.EntityImpl;
[javac] ^
That's because the agent is running in windows service mode. and based on http://support.microsoft.com/kb/180362, Cruise could not access mapped network drive when it runs in service mode.
So you can choose either solutions from the following:
1. use unc path. e.g. \\lib-server\libraries
2. start cruise agent using command line instead of windows service