Won't build under Windows XP with JRE 1.5.
Says source="1.5" in build.xml file is invalid.
dbaechtel@gmail.nonospam.com
Output from ant build follows:
C:\downloads\XmlStylist>ant build
Buildfile: build.xml
init:
compile:
[javac] Compiling 28 source files to
C:\downloads\XmlStylist\build
[javac] javac: invalid target release: 1.5
[javac] Usage: javac <options> <source files>
[javac] where possible options include:
[javac] -g Generate all
debugging info
[javac] -g:none Generate no
debugging info
[javac] -g:{lines,vars,source} Generate only
some debugging info
[javac] -nowarn Generate no
warnings
[javac] -verbose Output
messages about what the compiler
is doing
[javac] -deprecation Output source
locations where deprecated
APIs are used
[javac] -classpath <path> Specify where
to find user class files
[javac] -sourcepath <path> Specify where
to find input source files
[javac] -bootclasspath <path> Override
location of bootstrap class fil
es
[javac] -extdirs <dirs> Override
location of installed extension
s
[javac] -d <directory> Specify where
to place generated class f
iles
[javac] -encoding <encoding> Specify
character encoding used by sourc
e files
[javac] -source <release> Provide
source compatibility with specif
ied release
[javac] -target <release> Generate
class files for specific VM ver
sion
[javac] -help Print a
synopsis of standard options
BUILD FAILED
C:\downloads\XmlStylist\build.xml:29: Compile failed;
see the compiler error out
put for details.
Total time: 1 second
C:\downloads\XmlStylist>
Logged In: NO
Hi there. I had the same problem. You need to install the Java SDK 1.5 to compile this program. Once this installed see the Ant help files on setting up the environmental variables for both Ant and Java.
Try these sites:
http://www.j2x.ca/developer/other_docs/ant_beginner_tidy.php
http://java.sun.com/javase/downloads/index_jdk5.jsp
Cheers,
Alan