I'm not sure that this is the problem, though I have to admit it certainly looks like it (I am new to Java). One of the boxes in question had no version of Java at all save the one I installed (1.5.0_04), and when I run "ant --execdebug":

exec "/opt/jdk1.5.0_04/bin/java" -classpath "/opt/apache-ant-1.6.5/lib/ant-launcher.jar" -Dant.home="/opt/apache-ant-1.6.5" -Dant.library.dir="/opt/apache-ant-1.6.5/lib" org.apache.tools.ant.launch.Launcher -cp ":/opt/axis-1_2_1:/opt/axis-1_2_1/lib/axis-ant.jar:/opt/axis-1_2_1/lib/axis.jar:/opt/axis-1_2_1/lib/commons-discovery-0.2.jar:/opt/axis-1_2_1/lib/commons-logging-1.0.4.jar:/opt/axis-1_2_1/lib/jaxrpc.jar:/opt/axis-1_2_1/lib/saaj.jar:/opt/axis-1_2_1/lib/log4j-1.2.8.jar:/opt/axis-1_2_1/lib/xerces.jar:/opt/axis-1_2_1/lib/wsdl4j-1.5.1.jar:/opt/javamail-1.3.2/lib/mailapi.jar:/opt/jaf-1.0.2/activation.jar"

Seems to clearly show that it's using the proper java executable.

Is there anything else I might do to further diagnose what is going on?


Daniel Blaukopf wrote:

You're using Java 5 APIs and language features, but on your Linux boxes
you only have JDK 1.4 installed. You need to install JDK 1.5 on all
machines you're building on.

Daniel

Michael Stumpf wrote:
I'm using NetBeans to manage a few Java projects.  Recently I found a
need to build manually with the command line (read: scriptable) ant, and
I found that one of the three projects would sometimes fail.

On the NetBeans machine (windows + cygwin), the ant build works fine. The same directory copied to two other machines (linux boxes) fails.

Clearing the classpath, -debug and -verbose don't seem to offer any
clues.  Here's the output:

----
-pre-compile:

-do-compile:
  [javac] Compiling 98 source files to
/root/tmpdev/svn_buildtest__2005.09.20..10.52.56/trunk/netbeans/CFApplet/build/classes

  [javac]
/root/tmpdev/svn_buildtest__2005.09.20..10.52.56/trunk/netbeans/CFApplet/source/com/ibm/cf/ui/adminapplet/CFConnection.java:61:
cannot find symbol
  [javac] symbol  : method printf(java.lang.String,java.lang.String)
  [javac] location: class java.io.PrintWriter
  [javac]         out.printf("%s\0", mystr);
  [javac]            ^
  [javac]
/root/tmpdev/svn_buildtest__2005.09.20..10.52.56/trunk/netbeans/CFApplet/source/com/ibm/proj/soapclient/AddServerClient.java:77:
incompatible types
  [javac] found   : java.lang.Integer
  [javac] required: int
  [javac]         return (Integer) ret;
  [javac]                ^
  [javac]

----

It seems as though the classpath is messed up, but the other projects
build just fine.

What can I do to further diagnose what is going on?  Is there a
fundamental incompatibility between NetBeans auto-generated scripts and
manual ant building?

(NetBeans 4.1, ant 1.6.5)





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to