The Source for Java Technology Collaboration


Common Build Problems

Using an old version of Ant

You need a newer version of ant if you see something like the following. 1.6.5 is new enough. 1.6.0 is not.

BUILD FAILED:
/phoneme/jump/build/build-api.xml:35: Following error occured while executing this line
/phoneme/jump/build/build.xml:131:
Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute.

or

BUILD FAILED
/phoneme/jump/build/build-impl.xml:39:
The  type doesn't support the nested "mapper" element. 

Using make 3.81 on Windows

Currently on Windows you need to stick with make 3.79 or 3.80, or you'll get the following build error. Your best bet is to just use the Cygwin tools found in the cyg4me download.

NOTE: This problem is now fixed in mr2, allowing you to use cygwin make 3.81.

>>> C:/cygwin/home/phoneme/components/tools/tools.gmk:62
>>> : *** target pattern contains no `%'.  Stop. 

Using gcj java instead of the Sun java

Currently the GNU version of java (gcj) is not supported. It will produce the following error:

Compiling build-time classes...
../../build/linux-x86-generic/./generated/classes/com/sun/cdc/config/PackageManager.java:17:
generics are not supported in -source 1.4
(try -source 1.5 to enable generics)
    };
^
../../build/linux-x86-generic/./generated/classes/com/sun/cdc/config/PackageManager.java:17: 
> expected
    };
              ^
../../build/linux-x86-generic/./generated/classes/com/sun/cdc/config/PackageManager.java:17:
illegal start of expression
    };
                    ^
3 errors
make: *** [.compile.btclasses] Error 1

To fix this, you need to set JDK_HOME to a location that contains the Sun provided java.

-- ChrisPlummer - 09 Feb 2007

Topic PhoneMEAdvancedCommonBuildProblems . { Edit | Ref-By | Printable | Diffs r6 < r5 < r4 < r3 < r2 | More }
 XML java.net RSS

Revision r6 - 29 Mar 2007 - 16:36:27 - Main.cjplummer
Parents: WebHome > PhoneMEAdvanced