Hi, I got it run now. In fact this is my first error message, and I've gone through quite different errors or warning/exceptions last night and today.
Most of the things I do are just follow the readme and google. Just what somebody said Java 6 won't work or only Java 6 works are not trure. My java version is 1.5 on Mac OS X 10.4. Java and OS won't matter, but the build.xml. Eclipse can not work alone, console window should be the one build from using ant build. Thanks. Alexandra On Jan 27, 11:14 am, Alexandra Zhang <[email protected]> wrote: > Hi, I followed the Readme instruction and set up the build.xml > properties. But I can not get Chattr application build. > > The error message is "...Chattr/build.xml:16: Cannot find AppEngine > SDK; please reconfigure this build file" > > My build.xml is as following: > > <project name="chattr" default="build" basedir="."> > <!-- YOU MUST CONFIGURE THESE FOR YOUR SYSTEM --> > <property name="gwt.sdk" location="../gwt-mac-1.5.3" /> > <property name="appengine.java.sdk" location="../appengine-java- > sdk" /> > <!-- ........................................ --> > > <!-- Chattr specifics configuration; edit these for a new project -- > > <property name="gwt.module" > value="com.google.gwt.sample.chattr.Chattr" /> > <property name="gwt.moduleDeploy" value="chattr" /> > <property name="gwt.startupUrl" value="Chattr.html" /> > <!-- ............................................................ -- > > > > <!-- Computed variables --> > <property name="appengine.lib" location="${appengine.java.sdk}/lib" / > > <property name="orm.lib" location="${appengine.java.sdk}/orm-0.6" /> > <fail message="Cannot find AppEngine SDK; please reconfigure this > build file"> > <condition><not><and> > <available file="${appengine.lib}" type="dir"/> > <available file="${orm.lib}" type="dir"/> > </and></not></condition> > </fail> > > <condition property="gwt.devjar" value="${gwt.sdk}/gwt-dev- > windows.jar"> > <available file="${gwt.sdk}/gwt-dev-windows.jar" /> > </condition> > <condition property="gwt.devjar" value="${gwt.sdk}/gwt-dev- > linux.jar"> > <available file="${gwt.sdk}/gwt-dev-linux.jar" /> > </condition> > <condition property="gwt.devjar" value="${gwt.sdk}/gwt-dev-mac.jar"> > <available file="${gwt.sdk}/gwt-dev-mac.jar" /> > </condition> > <fail unless="gwt.devjar" message="Cannot find GWT SDK; please > reconfigure this build file"/> > > <condition property="jdo.enable"> > <available file="src/datanucleus.properties" /> > </condition> > > <property name="out.webinf" location="war/WEB-INF" /> > <property name="out.lib" location="${out.webinf}/lib" /> > <property name="out.bin" location="${out.webinf}/classes" /> > > <!-- Public build targets --> > <target name="build" depends="_gwtc, _serverCode" > description="Builds server code and runs a GWT compile." /> > > <target name="hosted" depends="_serverCode" description="Run the GWT > development shell + AppEngine development server"> > <java classname="com.google.gwt.dev.HostedMode" fork="yes" > failonerror="true"> > <jvmarg value="-XstartOnFirstThread"/> > <arg value="-startupUrl" /> > <arg value="${gwt.startupUrl}" /> > <arg value="-server" /> > <arg > value="com.google.apphosting.tools.development.gwt.AppEngineLauncher" / > > <arg value="${gwt.module}" /> > <classpath> > <pathelement location="src" /> > <pathelement location="${out.bin}" /> > <pathelement location="${gwt.sdk}/gwt-servlet.jar" /> > <pathelement location="${orm.lib}/jdo2-api-2.2.jar"/> > <pathelement location="${appengine.lib}/appengine-local- > runtime.jar" /> > <pathelement location="${gwt.devjar}" /> > </classpath> > </java> > </target> > > <target name="server" depends="_serverCode" description="Run the > AppEngine development server (does not run a GWT compile)"> > <echo message="PLEASE BROWSE TO:http://localhost:8080/${gwt.startupUrl}"/> > <java jar="${appengine.lib}/appengine-local-runtime.jar" > fork="yes"> > <arg value="war" /> > </java> > </target> > > <target name="upload" description="Upload your application to Google > (does not recompile anything)"> > <echo message="NOT IMPLEMENTED YET"/> > <echo message="Please review the AppEngine SDK doc for upload > instructions."/> > </target> > > <path id="enhancer.classpath"> > <pathelement location="${orm.lib}/jdo2-api-2.2.jar"/> > <pathelement location="${orm.lib}/datanucleus-enhancer-1.0.1.jar"/ > > <pathelement location="${orm.lib}/datanucleus- > core-1.1.0.m1-0000.jar"/> > <pathelement location="${orm.lib}/datanucleus- > core-1.1.0.m1-0001.jar"/> > <pathelement location="${orm.lib}/datanucleus- > core-1.1.0.m1-0002.jar"/> > <pathelement location="${orm.lib}/datanucleus- > core-1.1.0.m1-0003.jar"/> > <pathelement location="${orm.lib}/asm-3.1.jar"/> > <pathelement location="${gwt.sdk}/gwt-servlet.jar"/> > <pathelement location="${out.bin}"/> > </path> > <target name="enhanceForIDE" if="jdo.enable" > description="Enhances server code for JDO without recompiling > (used by Eclipse ant builder)"> > > <taskdef name="datanucleusenhancer" > classpathref="enhancer.classpath" > classname="org.datanucleus.enhancer.tools.EnhancerTask"/> > <datanucleusenhancer classpathref="enhancer.classpath" > failonerror="true"> > <fileset dir="${out.bin}"> > <include name="**/persistent/*.class"/> > </fileset> > </datanucleusenhancer> > </target> > > <target name="clean" description="Cleans this project's intermediate > and output files"> > <delete dir="${out.bin}" failonerror="false" /> > <delete dir="${out.lib}" failonerror="false" /> > <delete dir="war/gwt" failonerror="false" /> > <delete dir="war/${gwt.moduleDeploy}" failonerror="false" /> > </target> > > <!-- Private build targets --> > <jvmarg value="-XstartOnFirstThread" /> > <target name="_serverCode" depends="_enhance, _libs" /> > > <target name="_enhance" depends="_javac, enhanceForIDE" /> > > <target name="_javac"> > <mkdir dir="${out.bin}" /> > <javac srcdir="src" destdir="${out.bin}" debug="true" > debuglevel="lines,vars,source" > source="1.5" nowarn="true" encoding="utf-8"> > <classpath> > <pathelement location="${gwt.sdk}/gwt-servlet.jar" /> > <pathelement location="${orm.lib}/jdo2-api-2.2.jar"/> > <pathelement location="${appengine.lib}/appengine-api.jar"/> > </classpath> > </javac> > <copy todir="${out.bin}"> > <fileset dir="src"> > <include name="**/*.properties"/> > </fileset> > </copy> > </target> > > <target name="_libs" depends="_jdoLibs"> > <!-- Copy libs to lib directory --> > <mkdir dir="${out.lib}" /> > <copy todir="${out.lib}" file="${gwt.sdk}/gwt-servlet.jar" /> > <copy todir="${out.lib}" file="${appengine.lib}/appengine- > api.jar" /> > </target> > > <target name="_jdoLibs" if="jdo.enable"> > <!-- Copy datanuclues libs to lib directory --> > <mkdir dir="${out.lib}" /> > <copy todir="${out.lib}" file="${orm.lib}/datanucleus- > appengine-0.6.jar" /> > <copy todir="${out.lib}" file="${orm.lib}/datanucleus- > core-1.1.0.m1-0000.jar" /> > <copy todir="${out.lib}" file="${orm.lib}/datanucleus- > core-1.1.0.m1-0001.jar" /> > <copy todir="${out.lib}" file="${orm.lib}/datanucleus- > core-1.1.0.m1-0002.jar" /> > <copy todir="${out.lib}" file="${orm.lib}/datanucleus- > core-1.1.0.m1-0003.jar" /> > <copy todir="${out.lib}" file="${orm.lib}/datanucleus- > rdbms-1.1.0.m1-0000.jar" /> > <copy todir="${out.lib}" file="${orm.lib}/datanucleus- > rdbms-1.1.0.m1-0001.jar" /> > <copy todir="${out.lib}" file="${orm.lib}/datanucleus- > rdbms-1.1.0.m1-0002.jar" /> > <copy todir="${out.lib}" file="${orm.lib}/datanucleus- > rdbms-1.1.0.m1-0003.jar" /> > <copy todir="${out.lib}" file="${orm.lib}/jdo2-api-2.2.jar" /> > </target> > > <target name="_gwtc" depends="_javac"> > <java classname="com.google.gwt.dev.Compiler" fork="yes" > failonerror="true"> > <jvmarg value="-Xmx256M"/> > <arg value="-style" /> > <arg value="PRETTY" /> > <arg value="${gwt.module}" /> > <classpath> > <pathelement location="src" /> > <pathelement location="${out.bin}" /> > <pathelement location="${gwt.sdk}/gwt-servlet.jar" /> > <pathelement location="${orm.lib}/jdo2-api-2.2.jar"/> > <pathelement location="${gwt.devjar}" /> > </classpath> > </java> > <!-- AlphaImageLoader hack: copy ie6 images to top level directory > --> > <mkdir dir="war/gwt/standard/images" /> > <copy todir="war/gwt/standard/images"> > <fileset dir="war/${gwt.moduleDeploy}/gwt/standard/images" > casesensitive="yes"> > <include name="**/*.png"/> > </fileset> > </copy> > </target> > > </project> > > I'm using Mac OS X 10.4 Tiger. I only got GWT 1.5.3 for mac version. > > Please help. > > Thanks, > > Alexandra --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
