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]