问题描述
[color=#FF0000]错误提示:Buildfile:F:workspacehelloworldEGBbuild.xmlprepare:[delete]DeletingdirectoryF:workspacehelloworldEGBbuild[mkdir]Createddir:F:workspacehelloworldEGBbuildcompile:[javac]Compiling2sourcefilestoF:workspacehelloworldEGBbuildBUILDFAILEDF:workspacehelloworldEGBbuild.xml:26:F:workspacehelloworldEGB${env.JBOSS_HOME}clientnotfound.Totaltime:339milliseconds[/color]下面是build.XML文件内容,各位大虾给看看呀,不甚感激!!!!<?xmlversion="1.0"encoding="UTF-8"?><!--.表示同一目录..表示在上一目录--><projectname="helloworldEGB"basedir="."><propertyname="src.dir"value="${basedir}src"/><propertyenvironment="env"/><propertyname="jboss.home"value="${env.JBOSS_HOME}"/><propertyname="jboss.server.config"value="default"/><propertyname="build.dir"value="${basedir}build"/><pathid="build.classpath"><filesetdir="${jboss.home}client"><includename="*.jar"/></fileset><pathelementlocation="${build.dir}"/></path><targetname="prepare"><deletedir="${build.dir}"/><mkdirdir="${build.dir}"/></target><targetname="compile"depends="prepare"description="编译"><javacsrcdir="${src.dir}"destdir="${build.dir}"><classpathrefid="build.classpath"/></javac></target><targetname="ejbjar"depends="compile"description="创建ejb发布包"><jarjarfile="${basedir}${ant.project.name}.jar"><filesetdir="${build.dir}"><includename="**/*.class"/></fileset><!--把persistence.xml打包到META-INF目录下--><metainfdir="${src.dir}META-INF"></metainf></jar></target><targetname="deploy"depends="ejbjar"description="ejb发布"><copyfile="${basedir}${ant.project.name}.jar"todir="${jboss.home}server${jboss.server.config}deploy"/></target><targetname="undeploy"description="卸载ejb"><deletefile="${jboss.home}server${jboss.server.config}deploy${ant.project.name}.jar"/></target></project>
解决方案
解决方案二:
${env.JBOSS_HOME}没取到值啊
解决方案三:
没有配置JBOSS_HOME这个环境变量