用eclipse 的ant 窗口编译的时候 出现 can't find ant file to run 怎么办? [问题点数:20分,结帖人java2000_net]

Bbs1
本版专家分:10
结帖率 100%
Bbs4
本版专家分:1174
Bbs5
本版专家分:4686
ant编译时候出错。
那位大哥能帮忙解决以下这个问题:我用<em>ant</em><em>编译</em>一个工程,总是提示以下错误,请问为何?rncompile:rn [javac] Compiling 644 source <em>file</em>s to F:\mywork\zhaowenshe\WEB-INF\classrn [javac] F:\mywork\zhaowenshe\WEB-INF\src\com\founder\syoubunsya\model\cornymng\Hsgl_insert.java:1: illegal character: \65279rn [javac] 锘? /**rn [javac] ^rn [javac] F:\mywork\zhaowenshe\WEB-INF\src\com\founder\syoubunsya\model\phrnng\T_photo_readonly.java:1: illegal character: \65279rn [javac] 锘? /**rn [javac] ^rn [javac] F:\mywork\zhaowenshe\WEB-INF\src\com\founder\syoubunsya\model\phrnttrupdate\T_photo_seek.java:1: illegal character: \65279rn [javac] 锘? /**rn [javac] ^rn [javac] F:\mywork\zhaowenshe\WEB-INF\src\com\founder\syoubunsya\bzrule\mrnmng\MediaNew.java:1: illegal character: \65279rn [javac] 锘?/*rn [javac] ^rn [javac] F:\mywork\zhaowenshe\WEB-INF\src\com\founder\syoubunsya\bzrule\crnnymng\HuiSheGuanLi.java:1: illegal character: \65279rn [javac] 锘?/**rn [javac] ^rn [javac] F:\mywork\zhaowenshe\WEB-INF\src\com\founder\syoubunsya\action\srn\S03010201Action.java:1: illegal character: \65279rn [javac] 锘?/**rn [javac] ^rn [javac] F:\mywork\zhaowenshe\WEB-INF\src\com\founder\syoubunsya\tag\s03\rnanyName.java:1: illegal character: \65279rn [javac] 锘?/**rn [javac] ^rn [javac] F:\mywork\zhaowenshe\WEB-INF\src\com\founder\syoubunsya\util\SeerntOrderByItems.java:1: illegal character: \65279rn [javac] 锘?/*rn [javac] ^rn [javac] 8 errorsrn即使从新创建这些类仍然报这个错误,请问有人遇到吗?
eclipse ant停止编译
${workspace_loc:/ztxm/build.xml}   -logger org.apache.tools.<em>ant</em>.NoBannerLogger   -Xms64m -Xmx512m  
mac机下用eclipse调试代码 提示unable to find an ant file to run
[img=https://img-bbs.csdn.net/upload/201308/09/1376033091_686016.png][/img]rnrn如图如题,求大神们帮忙啊啊啊
ECLIPSE在使用ANT构建的时候~~~~
ECLIPSE在使用<em>ant</em>构建的时候怎么设置JAVA_HOME??rn我怎么设置都是这个错误:rn[javac] BUILD FAILED: <em>file</em>:D:/<em>eclipse</em>/workspace/test/build.xml:26: Unable to find a javac compiler;rncom.sun.tools.javac.Main is not on the classpath.rnPerhaps JAVA_HOME does not point to the JDKrnrn顺便说说怎么设置classpath 呢?rn
ant ant ant ant
<em>ant</em> <em>ant</em> <em>ant</em> <em>ant</em><em>ant</em> <em>ant</em> <em>ant</em> <em>ant</em><em>ant</em> <em>ant</em> <em>ant</em> <em>ant</em>
eclipse使用ant编译问题
Could not find the main class: org.<em>eclipse</em>.<em>ant</em>.internal.launching.remote.InternalAntRunner. Program will exit. JRE version less than 1.7 is not supported.
JKWorkersFile:Can,t find the workers file specified
配置apache+tomcat的时候老<em>出现</em>这个问题。rnmod_jk.confrn#加载mod_jk Module rnLoadModule jk_module modules/mod_jk.so rn rn#指定 workers.properties文件路径 rnJkWorkersFile conf/workers.properties rn rn#指定那些请求交给tomcat处理,"controller"为在workers.propertise里指定的负载分配控制器 rnJkMount /* controller rnrnrn确认conf目录下有workers.propertiesrnrnrnworker.list = controller,tomcat1,tomcat2 #server 列表 rn#========tomcat1======== rnworker.tomcat1.port=8080 #ajp13 端口号,在tomcat下server.xml配置,默认8009 rnworker.tomcat1.host=localhost #tomcat的主机地址,如不为本机,请填写ip地址 rnworker.tomcat1.type=ajp13 rnworker.tomcat1.lbfactor = 1 #server的加权比重,值越高,分得的请求越多 rn rn#========tomcat2======== rnworker.tomcat2.port=8081 #ajp13 端口号,在tomcat下server.xml配置,默认8009 rnworker.tomcat2.host=localhost #tomcat的主机地址,如不为本机,请填写ip地址 rnworker.tomcat2.type=ajp13 rnworker.tomcat2.lbfactor = 1 #server的加权比重,值越高,分得的请求越多 rnrn请大神指教
Can't find init file for Database ?????????? 救命,,
在Solaris上装oracle 9i,rn装完正常,但/var/opt/oracle/oratab 最后字是N,手工改为Y,但无法启动,<em>出现</em>标题rn所示错误,rnrn??????????
cooja ant run faild
刚开始接触contiki,下载了Inst<em>ant</em>Contiki3.0,(有个另外的疑问,能找到的最新版contiki内核版本不是contiki3.0,而是contiki master,其中有加入了CC1310,也就是支持的微处理器不仅有CC26XX,还有cc13xx,但是最新版的CONTIKI开发环境里面contiki3.0中,内核版本是3.0,而不是master,CPU只支持CC26XX,而没有cc13xx,我使用cc1310硬件平台时会有影响吗?)安装在我笔记本原有的虚拟机上,按照http://contiki-os.org/start.html 到<em>ant</em> <em>run</em>时失败,报错为 could not find the MSPsim build <em>file</em> ,did you <em>run</em>" git submodule update --init"?按照提示,仍旧报同样的错误。
eclipse ant 编译 中文乱码问题
<em>eclipse</em> <em>ant</em> <em>编译</em> 中文乱码问题 在 javac 下加encoding=&quot;UTF-8&quot;
eclipse ant
<em>eclipse</em> <em>ant</em>打包,所需要的内容<em>ant</em> 文件夹,里面的内容请根据自己的目录,秘钥进行修改 然后放进工程根目录即可
why can't run
i user a api functionrn[ DllImport("user32") ]rn public static extern long ExitWindowsEx(long uFlags, long dwReserved ) ;rnbut it <em>can't</em> be <em>run</em>rnprivate void button3_Click(object sender, System.EventArgs e)rn rn if(MessageBox.Show("close computer","system infomation",MessageBoxButtons.YesNo,MessageBoxIcon.Warning)==DialogResult.OK)rn sh=ExitWindowsEx(2,dwReserved);rn rnprivate void button3_Click(object sender, System.EventArgs e)rn rn if(MessageBox.Show("close computer","system infomation",MessageBoxButtons.YesNo,MessageBoxIcon.Warning)==DialogResult.OK)rn sh=ExitWindowsEx(1,dwReserved);rnrnrn rnrnrnrnhelp, help,help,rn
ant编译tomcat源码时出现错误
不是很了解<em>ant</em>,按教程做的rn下载了tomcat源码来<em>编译</em>rn<em>出现</em>下面这些错误rn请教怎么解决rnD:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:37: 软件包 org.<em>eclipse</em>.jdt.core.compiler 不存在rn [javac] import org.<em>eclipse</em>.jdt.core.compiler.IProblem;rn [javac] ^rn [javac] D:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:38: 软件包 org.<em>eclipse</em>.jdt.internal.compiler 不存在rn [javac] import org.<em>eclipse</em>.jdt.internal.compiler.ClassFile;rn [javac] ^rn [javac] D:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:39: 软件包 org.<em>eclipse</em>.jdt.internal.compiler 不存在rn [javac] import org.<em>eclipse</em>.jdt.internal.compiler.CompilationResult;rn [javac] ^rn [javac] D:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:40: 软件包 org.<em>eclipse</em>.jdt.internal.compiler 不存在rn [javac] import org.<em>eclipse</em>.jdt.internal.compiler.Compiler;rn [javac] ^rn [javac] D:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:41: 软件包 org.<em>eclipse</em>.jdt.internal.compiler 不存在rn [javac] import org.<em>eclipse</em>.jdt.internal.compiler.DefaultErrorHandlingPolicies;rn [javac] ^rn [javac] D:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:42: 软件包 org.<em>eclipse</em>.jdt.internal.compiler 不存在rn [javac] import org.<em>eclipse</em>.jdt.internal.compiler.ICompilerRequestor;rn [javac] ^rn [javac] D:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:43: 软件包 org.<em>eclipse</em>.jdt.internal.compiler 不存在rn [javac] import org.<em>eclipse</em>.jdt.internal.compiler.IErrorHandlingPolicy;rn [javac] ^rn [javac] D:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:44: 软件包 org.<em>eclipse</em>.jdt.internal.compiler 不存在rn [javac] import org.<em>eclipse</em>.jdt.internal.compiler.IProblemFactory;rn [javac] ^rn [javac] D:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:45: 软件包 org.<em>eclipse</em>.jdt.internal.compiler.classfmt 不存在rn [javac] import org.<em>eclipse</em>.jdt.internal.compiler.classfmt.ClassFileReader;rn [javac] ^rn [javac] D:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:46: 软件包 org.<em>eclipse</em>.jdt.internal.compiler.env 不存在rn [javac] import org.<em>eclipse</em>.jdt.internal.compiler.env.ICompilationUnit;rn [javac] ^rn [javac] D:\opensource\tomcat\src\java\org\apache\jasper\compiler\JDTCompiler.java:47: 软件包 org.<em>eclipse</em>.jdt.internal.compiler.env 不存在rn [javac] import org.<em>eclipse</em>.jdt.internal.compiler.env.INameEnvironment;rn [javac] ^rn [javac]
ant编译
<em>ant</em><em>编译</em>
ant 配置文件编译出现乱码
用<em>ant</em><em>编译</em>java源文件的时候<em>出现</em>乱码 , 在build.xml文件中 javac标签指定了 encoding="utf-8" 和 jar标签也设置了 encoding="utf-8" <em>编译</em>还是<em>出现</em>乱码。请问一下怎么回事
Eclipse 3.1.1用ant编译出现如下问题
[javac] WARNINGrn [javac] The -source switch defaults to 1.5 in JDK 1.5.rn [javac] If you specify -target 1.1 you now must also specify -source 1.2.rn [javac] Ant will implicitly add -source 1.2 for you. Please change your build <em>file</em>.rn [javac] D:\Doja\Monopoly\sources\versions\en_woc\v1_0_0\CreditChecker.java:239: 对 HttpConnection 的引用不明确,javax.microedition.io 中的 类 javax.microedition.io.HttpConnection 和 com.nttdocomo.io 中的 类 com.nttdocomo.io.HttpConnection 都匹配rn [javac] HttpConnection conn=null;rn [javac] ^rnrn问题是HttpConnection 有2种引用能匹配,我想解决方法不会是把代码中的HttpConnection指定下引用吧?????我觉得这样做,不是最好的<em>办</em>法,大家是否有更好的方法??
关于用ANT编译的时候出现的问题。急
我使用jbuilder 9利用<em>ant</em><em>编译</em>,总是<em>出现</em>memery不足的错误。rn用<em>eclipse</em> 也是。rn<em>出现</em>这种错误信息: rn[ejbdoclet] Try to increase heap size. Can be done by defining ANT_OPTS=-Xmx640mrnrn有谁知道如何才能解决这个问题阿
can`t find openocd.cfg
想在Ubuntu上安装openocd来给板子烧程序,本来下了个openocd的tar包,但是make时报错,于是直接用的apt-get install openocd安装的,用 openocd -v查看,可以看到版本号,说明安装成功了,但是,使用其他命令,如 openocd -f时,却报错,提示找不到 openocd.cfg,这个怎么搞?自己新建一个吗?网上倒是看到很多教怎么配置openocd的,但是,我找不到这个文件啊,要是新建的话,是在哪儿新建呢?
can't find library! :(...
SCO Unix,写了一个库,<em>编译</em>成libini.a,没有问题。rn写了一个测试程序,调用这个库中的函数,<em>编译</em>的时候rn说<em>can't</em> find library libini.a ,这是怎么回事?rn<em>编译</em>命令我这么写的:rncc -o test test.c -lini -L /data01/src/librn我不写-L也是一样的错误... :(... 我是新手,请教了!rn
Can't find NTLDR?
我的机器上装有NT 和98 rn不知道被谁误删了什么东西rn启动时<em>出现</em>rnCan't find NTLDRrnINSERT ANOTHER DISKrn
用Ant发邮件 Ant MAIL
JMeter功能回归测试报
Ant 用特征控制Ant
1.根据特定条件执行目标     设置目标if和/或unless属性为某个特征名称完成的。 &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt; &amp;lt;project name=&quot;property&quot; default=&quot;echoall&quot;&amp;gt; &amp;lt;target name=&quot;echoall&quot; if=&quot;o
eclipseant编译时停止
<em>eclipse</em> <em>ant</em> 执行到javac时停止解决方法 在<em>ant</em>构建文件上右击,点击&quot;<em>run</em> as&quot;-&gt;&quot;extenal tools configurations&quot;, 最后,在运行配置里,Common这个Tab页里,ConsoleEncoding设置编码为UTF-8后,一切正常。 看来这个ConsoleEncoding不仅仅是显示用的,而且在Ant运行的时候也有用。 ...
使用ANT 不可以run,而ECLIPSE 能run
程序用到了hibernate 中配置文件:rn[code=java]rnrn rn rn rn rn rn rn[/code]rnrn使用<em>ant</em> compile时,<em>出现</em>unsupported cascade style :creaternrnrn但使用hibernate时,可以正常运行。rnrn
ant编译j2me的问题
一直是用idea建立<em>编译</em>j2me工程的,但现在想把<em>编译</em>的任务提出来用<em>ant</em>来做。参考:rnhttp://www.matrix.org.cn/resource/article/43/43770_Ant_J2me.htmlrn来做,<em>编译</em>过程没有问题,jar、jad也都生成了,但是在emulator运行的时候就出问题了,模拟器会弹出很长一屏的异常,然后退出。怀疑是<em>编译</em>的环境问题,但可惜看不到idea<em>编译</em>的命令行。另外就是可否在<em>ant</em>中指定JAVA_HOME这个环境变量,平时用的是1.5,但编j2me的时候用的是1.4。rn100分全部送给第一解决这个问题的人。rn
ant进行编译和打包
昨天使用my<em>eclipse</em>中的<em>ant</em>进行打包时提示:'<em>ant</em>' 不是内部或外部命令,配置下<em>ant</em>环境打包成功:1、下载并安装<em>ant</em>官方主页http://<em>ant</em>.apache.org最新版是1.8.4,我下载的是1.8.3得到的是一个apache-<em>ant</em>-1.8.3-bin.zip的压缩包。将其解压到你的硬盘上,例如:D:\tools\apache-<em>ant</em>-1.8.3 2、2.配置环境变量。 依...
ant编译helloworld程序出错
rn 小弟写了一个很简单的helloworld的ejb程序,当初我用jdk1.42,jboss4.0时,用<em>ant</em>能正常<em>编译</em>,并且能正常部署到jboss下面,可是当我把jdk版本升级到1.5时,jboss还是用4.0,用<em>ant</em><em>编译</em>java文件时<em>出现</em>下列提示:rn 读取 D:\jboss\bin\classpath.sh 时出错;error in opening zip <em>file</em>rn D:\ejb\hello\src\HelloWorldClient.java 使用了未经检查或不安全的操作。rn 要了解详细信息,请使用 -Xlint:unchecked 重新<em>编译</em>。rnrn 不知哪位高手碰到过这种问题,能否解答一下?
ant进行编译和打包
<em>ant</em>是目前java环境下最好用的打包部署工具,其采用xml的格式进行编写,功能非常强大。 现介绍一下如何手工使用<em>ant</em>进行java程序的<em>编译</em>打包。 一、安装<em>ant</em> 1.下载并安装<em>ant</em>。 到官方主页http://<em>ant</em>.apache.org下载新版(目前为Ant1.8.1)的<em>ant</em>,得到的是一个apache-<em>ant</em>-1.8.1-bin.zip的压缩包。将其解压到你的硬盘上,例如:D:\a
Ant基本使用指南 & Ant与Eclipse集成解析
Ant基本使用指南 [url]http://www.iteye.com/topic/78973[/url] template : [url]http://shawnqiu.iteye.com/blog/712284[/url]
为什么编译时报Can't locate file
我的程序是:rn;程序模板rnrnSSEG SEGMENT PARA STACK 'stack'rn dw 100h dup(0) ;初始化堆栈大小为100rnSSEG ENDSrnrnDSEG SEGMENTrnDA1 DW 274FHrnrn ;数据段:在此处添加程序所需的数据rnDSEG ENDSrnrnESEG SEGMENTrn ;附加段:在此处添加程序所需的数据rnESEG ENDSrnrnCSEG SEGMENTrn assume cs:CSEG, ds:DSEG, es:ESEG, ss:SSEGrnrnrn rnMAIN PROC FAR ;主程序入口rnrn mov ax, dsegrn mov ds, axrn mov ax,esegrn mov es, axrnrn rnrn rn;此处添加主程序代码rnDA2 EQU BYTE PTR DA1rnDA3 EQU DA2+1rnMOV AL,DA3rnMOV DL,ALrnMOV AH,2hrnINT 21Hrn ;按任意键退出rn mov ah,1rn int 21hrnrn mov ax, 4c00h ;程序结束,返回到操作系统系统rn int 21hrnMAIN ENDPrn rnCSEG ENDSrnrnEND MAINrn为什么<em>编译</em>时报Can't locate <em>file</em>?
ant 编译失败:ant build faild
我在使用<em>ant</em> <em>编译</em>程序时<em>出现</em>了以下问题:rnrnBUILD FAILEDrnC:\Documents and Settings\Administrator\桌面\sslexplorer-1.0.0_RC17\sslexplorer\build.xml:699: The following error occurred while executing this line:rnC:\Documents and Settings\Administrator\桌面\sslexplorer-1.0.0_RC17\sslexplorer-community-tunnels\build.xml:110: Unable to create directory as a <em>file</em> already exists with that name: C:\Documents and Settings\Administrator\桌面\sslexplorer-1.0.0_RC17\sslexplorer-community-tunnels\build\classesrn错错误行是:rn rn和rn rn rn rnrn??????????找了很久没找出原因,错因是这样的:我在<em>ant</em> install时,已经<em>编译</em>了一半机器被卡死了,动不了,我就强制关机了,结果打开机器就无法<em>编译</em>了,又安全重启了好几遍还是一样。
why can't run catch().....
try rn ClientSocket->Port = ldSndPort;rn ClientSocket->Address = ldSndIp;rn ClientSocket->Active = true ;rn ClientSocket->Socket->SendText(ldSktPort);rn catch (Exception &err) rnShowMessage("hava eror");rn return false;rn catch (...) rnShowMessage("hava eror");rn return false;rn rn return true;rn
Ant and Flex 用Ant编译MXML文件 - 蚂蚁咬断松紧带(^_^)
Ant and Flex 用Ant<em>编译</em>MXML文件 - 蚂蚁咬断松紧带(^_^)rnrnhttp://iamin.blogdriver.com/iamin/1173623.htmlrnrn以下的描述均Flex 1.5为例rnrn一、Flex Serverrn1、安装后,我们可以在%FLEX_HOME%目录下看到三个.war文件flex.war pro<em>file</em>r.war samples.war不用多介绍了吧。rnrn2、%FLEX_HOME%/bin目录下看到许多文件,以下几个执行文件是我们关注的rncompc、mxmlc:都是 Macromedia Flex Builder ,两个文件是一模一样的作用,连文件内容也是一样的,不信自己去Beyond Compare一下rn可以运行 compc -version 或 mxmlc -version 得到它们的版本号信息 Macromedia Flex Build: 87315.134646rn使用方法如下:当然我们可以在Ant里面调用执行文件来进行<em>编译</em>,但是不是很爽啦:(rnUsage: compc [-version] [-configuration path] [-flexlib path] [-libpath path] [-systemclasses path] [-g] [-O0] [-pro<em>file</em>] [-o path] [-headless] [-contextroot root] [-proxyurl url] [-proxyhttpsurl url] [-proxyallowurloverride] [-gatewayurl url] [-gatewayhttpsurl url] [-remoteallowurloverride] [-webroot directory] [-aspath path] [-genlibdir dir] [-encoding <em>file</em>_encoding] [-namespace uri manifest<em>file</em>] [-report] [-loglevel error|warn|info|debug] [-manifest manifest] [-root root] foo.mxmlrnrnfdb:是调试工具,没有用过,直接运行它,可以看到信息 Macromedia fdb (Flash Player Debugger) [build 87315.134646]rn输入help可以看到所有的操作命令与功能简介,quit退出,看自带的文档进行详细查阅,没有研究过它rnrnlicensetool:License工具rnUsage: license [-install licensekey] [-info] flex-war-<em>file</em>name|flex-war-directoryrnrn3、%FLEX_HOME%/lib目录下,赫赫,这个应当是我们更加想关注的哦。rn里面有 compc.jar mxmlc.jar fdb.jar licensetool.jar 和 flex-tools.jar 五个.jar文件,不过前四个都只有1k,咋一看,有点晕,肯定是啥也没有的东东,何用?不过。。。rn打开一看,里面均是只有META-INF\MANIFEST.MF一个文件rn细看mxmlc.jar有Main-Class: flex.tools.Mxmlcrn../classes/ flex-tools.jar flex-bootstrap.jar xercesPatch.jar oscache.jar xercesImpl.jar xmlParserAPIs.jar jakarta-oro-2.0.7.jar batik-awt-util.jar batik-bridge.jar batik-css.jar batik-dom.jar batik-ext.jar batik-gvt.jar batik-parser.jar batik-script.jar batik-svg-dom.jar batik-util.jar batik-transcoder.jar batik-xml.jar axis.jar commons-discovery.jar commons-logging.jar jaxrpc.jar saaj.jar wsdl4j.jar concurrent.jar commons-collections.jarrn看到这里应当说就有点儿豁然开朗了吧。rn继续rn../classes/这个在%FLEX_HOME%下没有发现rnflex-tools.jar在这个目录下有rn其它的也都没有。。。不过,应当一眼扫一下就知道在哪里有了:)rnOK,在%FLEX_HOME%/flex.war里/WEB-INF/lib/目录下可以发现flex-bootstrap.jar、flexgateway.jar、commons-collections.jar、commons-beanutils.jarrn在%FLEX_HOME%/flex.war里/WEB-INF/flex/jars/目录下可以发现其它的jar包了。rn这样基本上所需的枪炮都找到了。要开工了。rnrn二、准备Ant<em>编译</em>所需的文件rn1、基本工作,解压%FLEX_HOME%/flex.war到你的项目工作目录%YOUR_PROJECT%下面,或者就扔到%TOMCAT_HOME%\webapps\下面,让Tomcat帮你解压:)rn2、把%FLEX_HOME%/flex-tools.jar拷贝到%YOUR_PROJECT%/WEB-INF/flex/jars/下面rn3、把%YOUR_PROJECT%/WEB-INF/flex/license.properties拷贝到%YOUR_PROJECT%/WEB-INF/flex/jars/下面rn要不然会报告rnLicense Service: Unable to open license <em>file</em> - .\WEB-INF\flex\jars\license.properties (系统找不到指定的文件。)rnWARNING License Service: The Flex 1.5 Trial Edition evaluation period will expire in 55 days.rnLicense Service: Flex 1.5 Trial Edition enabledrnWarning: applications compiled into standalone SWFs using the Trial and Developer editions of Macromedia Flex expire 1 day after creation. This restriction is only in place for the Trial and Developer editions of Macromedia Flex.rnrn三、建立Ant<em>编译</em>文件和任务rn在%YOUR_PROJECT%下建立build.properties和build.xml文件rnrn1、build.properties文件,内容如下rn#Flex Libs Pathrnflex.lib=./WEB-INF/flex/jarsrn#Internet Explorer Pathrnwebbrowser=D:/Program Files/Internet Explorer/iexplore.exern#FlashPlayerrnflashplayer=E:/Program Files/Macromedia/Flex/bin/SAFlashPlayer.exern#WebServer URLrnwebserver=http://localhost:9080/flexrn#Project Pathrnprojectpath=F:/OpenSource/Eclipse/workspace/flexrn#.mxml <em>file</em> path without .mxml suffixrnmxml<em>file</em>path=01module/Userrnrn说明webbrowser、flashplayer、projectpath为绝对路径,请进行相应的修改rn重要的!!!webserver为你的Web应用访问地址,这个是用来进行开发RemotingObject时要设置gatewayurl的,如-gatewayurl $webserver/amfgatewayrnmxml<em>file</em>path为你要<em>编译</em>的.mxml文件路径,不要带后缀名rn<em>编译</em>时只要<em>ant</em> -Df=yourpath/YourMXML就是<em>编译</em>你的yourpath/YourMXML.mxml了,<em>编译</em>成功后就会用浏览器打开它;rn想用FlashPlayer打开,运行<em>ant</em> <em>run</em>flash -Df=yourpath/YourMXML就是<em>编译</em>你的yourpath/YourMXML.mxml并用FlashPlayer打开。rnrn2、build.xml文件,内容如下rnrn...........rnrn发贴说贴子太长,上Blog浏览吧rn
文件上传时出现 File can't be saved
底下是错误信息,请高手指教,谢谢!rnrnError: 500rnLocation: /test01/sample2.jsprnInternal Servlet Error:rnrnjavax.servlet.ServletException: File <em>can't</em> be saved (1120).rn at org.apache.jasper.<em>run</em>time.PageContextImpl.handlePageException(PageContextImpl.java:460)rn at test01.sample2_1._jspService(sample2_1.java:144)rn at org.apache.jasper.<em>run</em>time.HttpJspBase.service(HttpJspBase.java:119)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java)rn at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)rn at org.apache.tomcat.core.Handler.invoke(Handler.java:322)rn at org.apache.tomcat.core.Handler.service(Handler.java:235)rn at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)rn at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)rn at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)rn at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)rn at org.apache.tomcat.util.net.TcpWorkerThread.<em>run</em>It(PoolTcpEndpoint.java:494)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.<em>run</em>(ThreadPool.java:516)rn at java.lang.Thread.<em>run</em>(Thread.java:536)rnRoot cause:rncom.jspsmart.upload.SmartUploadException: File <em>can't</em> be saved (1120).rn at com.jspsmart.upload.File.saveAs(File.java:108)rn at com.jspsmart.upload.File.saveAs(File.java:65)rn at test01.sample2_1._jspService(sample2_1.java:121)rn at org.apache.jasper.<em>run</em>time.HttpJspBase.service(HttpJspBase.java:119)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java)rn at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)rn at org.apache.tomcat.core.Handler.invoke(Handler.java:322)rn at org.apache.tomcat.core.Handler.service(Handler.java:235)rn at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)rn at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)rn at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)rn at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)rn at org.apache.tomcat.util.net.TcpWorkerThread.<em>run</em>It(PoolTcpEndpoint.java:494)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.<em>run</em>(ThreadPool.java:516)rn at java.lang.Thread.<em>run</em>(Thread.java:536)rnrn
Eclipse 使用ant编译带有中文路径的文件
  【解决<em>办</em>法是】:将Ant控制台编码格式改为UTF-8.   1.右键build.xml  --&amp;gt; Run As --&amp;gt; External Tools... 2.打开Common tab页 3.在其中的Console Encoding中选择UTF-8...
eclipse里面怎样用ant编译jsp文件
bulid.xml该怎样写才能<em>编译</em>jsp文件呢。我现在只能<em>编译</em>java文件呢。。。
eclipse中用ant编译工程文件,报错java.lang.OutofMemory?
在<em>eclipse</em>中用<em>ant</em><em>编译</em>工程文件,报错java.lang.OutofMemory.修改build.xmlrn中javac的参数,增加memoryInitialSize="512000k",仍然报错。请tx指点,困扰rn我两天了。谢谢!
eclipse下使用ant编译工程的问题
该工程在命令行下用<em>ant</em>命令可以正常<em>编译</em>,但如果使用<em>eclipse</em>的<em>ant</em>插件进行<em>编译</em>,则弹出信息:Waiting for virtual machine to exit...然后在那里死等。不知有没有朋友遇到过这类问题,该怎么解决啊
eclipseant编译未完成结束问题
问题描述:当console输出有中文时,会运行到输出汉字的前一步就停止。 解决方法: 第一种在 <em>ant</em> 设置的 common 选项卡 中设置 Console Encoding 为GB18030(或者GBK)编码即可 当<em>ant</em>的common选项卡里的 Console Encoding 没有GB18030(或者GBK)时,先在 <em>eclipse</em> -&amp;gt; windows -&amp;gt;...
使用Ant编译生成Hadoop的Eclipse插件
-
Ant使用指南 有关eclipse
Ant使用指南 有关<em>eclipse</em>,由浅入深
Eclipse 之 Ant 初级开发
方法一: 1.安装Ant      下载安转包,解压到工作目录下:D:\Tools\apache-<em>ant</em>-1.9.0 2.环境配置(同java的环境配置)     ANT_PATH=D:\Tools\apache-<em>ant</em>-1.9.0     PATH=%ANT_PATH%\bin 3.新建build.xml 文件 4.运行Ant     cd D:\Tools\apache-a...
Eclipse ant build failed
提示:nBUILD FAILEDn/workspace/xxx/build.xml:49: Cannot find /workspace/xxx/C:/android-sdk-windows/tools/<em>ant</em>/build.xml imported from /workspace/xxx/build.xmlnn
在Eclipse下使用ant构建
目前的Eclipse都集成了<em>ant</em>,但是如何在Eclipse下使用<em>ant</em>呢?如果使用ivy,则需要加入ivy-2.2.0.jar 1.在工程根目录下新建build.xml project 的常用属性有:      --name : project名称(不必固定)      --default : 在运行该文件的时候默认进入的任务名称 3.在project标签内定
android2.3 eclipse ant混淆
NULL 博文链接:https://phenom.iteye.com/blog/855187
Eclipse创建Ant工程
Eclipse中已经集成了Ant,我们可以直接在Eclipse中运行Ant。  1、用 Ant 来构建简单系统  新建一个 Java project, 命名为Hello  Hello .java 文件内容 package example; public class Hello { public static void main(String[] args) { Sy...
eclipseant的问题!!!!
我用的是Eclipse3.2,使用Middlegen的Eclipse插件创建Pojo类和hbm.xml文件。(版本是middlegenide_1.3.3.zip), 而且相应的hibernate、<em>ant</em>等插件都正确安装,一直都好好的,[color=#FF0000][b]不知道为什么“运行<em>ant</em>构建”现在不能用了!!!!以前“运行<em>ant</em>构建”是“绿色”的,运行不会出错,现在“运行<em>ant</em>构建”是“灰色”的,[/b][/color]运行就提示[color=#3366FF]“Middlegen couldn't find any relations between any tables. This may be intentional from the design of the database, but it may also be because you have incorrectly defined the relationships. It could also be because the JDBC driver you're using doesn't correctly implement DatabaseMetaData. See the samples (for an example on how to define relationships) and verify that your driver correctly implements DatabaseMetaData.”[/color]rn bulid.xml也一直正常,没有改过,不知为什么突然就用不了了??rn 高手指教!!!!帮帮忙!!!!谢谢!!
eclipse中使用ant
有个项目结构是这样能这样的rn[img=https://img-bbs.csdn.net/upload/201805/25/1527220188_367565.png][/img]rn怎么导入<em>eclipse</em>中?rn我参照网上的一些教程导入怎么只有src目录?rn[img=https://img-bbs.csdn.net/upload/201805/25/1527220380_207819.png][/img]
eclipse中Ant的作用?
请问下:<em>eclipse</em>中Ant的作用?build.xml用Ant运行是用来干嘛的?有谁能指教下吗?谢谢!
eclipse中的ant
运行时出错,信息如下;rnBUILD FAILED: D:\java\workspace\Ch05_02\build.xml:36: Compiler Adapter 'org.<em>eclipse</em>.jdt.core_3.0.0.JDTCompilerAdapter' <em>can't</em> be found.rnrnrnrnbuild.xml中的相关语句如下:rnrnrnrn我像可能是路径出问题了,可是我部知道为什么rn我的<em>eclipse</em>在j盘
Eclipse 与Ant 资料
mbookmbookmbookmbookmbookmbookmbookmbook
eclipse里面配置ant
1.右键--&amp;gt; Properties --&amp;gt;Builders --&amp;gt; New … --&amp;gt; Ant Build er 2.填写name,选择<em>编译</em>的Build<em>file</em>:一般都是 build.xml,选择 Base Directory:就是选择那个工程要用<em>ant</em>。 3.点击OK收工了,在 Builders,去掉ja...
Eclipse中Ant的使用
1.查看<em>eclipse</em>中<em>ant</em>插件的版本 进入<em>eclipse</em>安装目录的plugins文件夹下,可以看到对应<em>ant</em>插件的版本(不止<em>ant</em>,其他的插件的版本也同样可以看到): 2.demo-TestTomcat(就利用之前的testTomcat项目搞) 在根目录下新建build.xml(名字可以改,但是一般都是这个),之后的目录为: build.xml右键Run as Ant Buil...
Eclipse下Ant插件的安装
对Eclipse不是很熟悉。rn我装的是Eclipse3.1。Ant是Eclipse自带吧?:-)安装了xmlbuddy插件。rn以前用别人的Eclipse,<em>ant</em>的builder.xml文件就会显示一个蚂蚁图标。并且outline一栏会显示你定义的target(绿色圆点),可以<em>run</em>.rn可是我现在的Eclipse把builder.xml当作一个普通的xml文件,在outline一栏都是对xml文件的定义信息。rn这是怎么回事儿。我怎样可以让我的Eclipse也能在outline一栏<em>run</em>定义好的builder.xml文件的target?rn以前用的那个Eclipse也装了xmlbuddy插件。rn还有,<em>eclipse</em>的插件搞不明白,经常copy好多个放在<em>eclipse</em>/plugins目录,但是还是没有<em>出现</em>应该添加的菜单。是因为<em>eclipse</em>的版本问题吗?有没有人详细讲讲Eclipse插件安装的问题?
Can't find library: "CbsSysClassD"
Can't find library: "CbsSysClassD"rnrnrn这是什么错误啊!!!
codeblocks can't find resources..
新手新手!!!!rn 在codeblocks链接wx时把路径还是注册表弄丢了,我也不是很清楚,之后按照下面的图片 我试过在网上找解决<em>办</em>法 但是没有相似案例啊 然后我用cmd命令行试图打开codeblocks.exe,但是并没有成功,error里面那个设置环境变量我也没懂是啥意思,是不是只有重装codeblocks了???rn[img=https://img-bbs.csdn.net/upload/201803/31/1522467926_854540.png][/img]
Eclipse中的Ant
在<em>eclipse</em>中 如果我用<em>ant</em> 进行对java的源文件进行<em>编译</em>。自动打成.jar包。想问下,<em>ant</em>对java源文件进行<em>编译</em>的话是用的什么<em>编译</em>器? 是和jdk版本对应的吗?如果我要换成其他低版本的<em>编译</em>器如(jdk1.5或jdk1.4)我该怎么做?
eclipse中的ant问题
我一个使用weblogic的项目,在dos下直接用<em>ant</em><em>编译</em>没有什么问题,但是在<em>eclipse</em>rn里用<em>ant</em><em>编译</em>的时候<em>出现</em>如下提示:rn [java] java.lang.NoClassDefFoundError: weblogic/ejbcrn [java] Exception in thread "main" rn [java] Java Result: 1rn我已经检查了几个路径,包括把weblogic.jar也已经加入路径中,但是还是不行,请问哪位有碰到过类似问题并解决了的,多谢。rn
eclipse导入ant工程
不同于maven可以直接对IDE的支持(mvn <em>eclipse</em>:<em>eclipse</em> -DdownloadSources=true -DdownloadJavaDocs=true),<em>ant</em>并不具有这样的命令.这样如果<em>eclipse</em>需要import <em>ant</em>工程需要加入两个.classPath .project文件。如下: .project your_project-name ...
Eclipse之ANT使用
Eclipse之ANT使用,开发部署工具利器!
eclipse中使用ant
      之前一直在写java web ,用my<em>eclipse</em> 开发调试和打包都很方便,虽然了解一点儿<em>ant</em> 和maven,但是在项目中没有实践过,也没有做过多的了解。现在要用java 写一个本地程序,定时生成一些报表,所以感觉<em>eclipse</em> 并不是很好用,索性实践一下<em>ant</em> ,用<em>ant</em> 进行调试和打包。       此项目的目的为,在下一个月的1号凌晨零点零分零秒,定时生成一些报表。所以需...
Eclipse Ant编译打包
在Eclipse中使用Ant<em>编译</em>打包, 1、Eclipse安装Ant插件,一般高一点版本的Eclipse基本上都自带有<em>ant</em>了, 2、配置Ant打包, 右键项目&amp;gt;属性&amp;gt;Builders A、在Build<em>file</em>中点击Browse Wordspace选择项目中的<em>ant</em>配置文件build.xml B、在Base Directory中点击Browse Wordspace选择项目的根...
eclipse findbugs ant
最近看一下findbugs <em>ant</em> 也看了网上好多这样的设置,还是有些迷惑搞不定,希望懂的给详细说明一下,以及下载地址,rnrnrn我下载的有2种 :plugins 版:edu.umd.cs.findbugs.plugin.<em>eclipse</em>_1.3.9.20090821rn zip版 findbugs-1.3.9rnrnrn我配置<em>ant</em>时 总是找不到这个rn[code="java"]rn[/code]rnrn不知道为什么,最好能给个详细的配置说明,小弟不胜感激。n[b]问题补充:[/b]n我是想要个findbugs <em>ant</em>的配置说明,因为我的开发工具不能安装上哪个插件,所以想寻求<em>ant</em>的方式进行findbugs的查错功能。n[b]问题补充:[/b]n能说的具体点吗?rnrndwangel (高级程序员) n[b]问题补充:[/b]nrnrn总是提示 这样的错误 :麻烦看看rnrnrnrn[code="java"]Build<em>file</em>: D:\PublicCard\publicCard_SH\build.xmlrnrnBUILD FAILEDrnjava.lang.UnsupportedClassVersionError: edu/umd/cs/findbugs/<em>ant</em>task/FindBugsTask (Unsupported major.minor version 49.0)rn at java.lang.ClassLoader.defineClass0(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:539)rn at org.apache.tools.<em>ant</em>.loader.AntClassLoader2.defineClassFromData(AntClassLoader2.java:76)rn at org.apache.tools.<em>ant</em>.AntClassLoader.getClassFromStream(AntClassLoader.java:1090)rn at org.apache.tools.<em>ant</em>.AntClassLoader.findClassInComponents(AntClassLoader.java:1154)rn at org.apache.tools.<em>ant</em>.AntClassLoader.findClass(AntClassLoader.java:1107)rn at org.apache.tools.<em>ant</em>.AntClassLoader.loadClass(AntClassLoader.java:977)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:235)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:219)rn at org.apache.tools.<em>ant</em>.taskdefs.Definer.addDefinition(Definer.java:457)rn at org.apache.tools.<em>ant</em>.taskdefs.Definer.execute(Definer.java:183)rn at org.apache.tools.<em>ant</em>.UnknownElement.execute(UnknownElement.java:275)rn at org.apache.tools.<em>ant</em>.Task.perform(Task.java:364)rn at org.apache.tools.<em>ant</em>.Target.execute(Target.java:341)rn at org.apache.tools.<em>ant</em>.helper.ProjectHelper2.parse(ProjectHelper2.java:142)rn at org.<em>eclipse</em>.<em>ant</em>.internal.ui.<em>ant</em>support.InternalAntRunner.parseBuildFile(InternalAntRunner.java:191)rn at org.<em>eclipse</em>.<em>ant</em>.internal.ui.<em>ant</em>support.InternalAntRunner.<em>run</em>(InternalAntRunner.java:400)rn at org.<em>eclipse</em>.<em>ant</em>.internal.ui.<em>ant</em>support.InternalAntRunner.main(InternalAntRunner.java:137)rnrnTotal time: 688 milliseconds[/code]n[b]问题补充:[/b]n这句话 一定要这样写吗?rnrnrn rnrn是固定的吗@@n[b]问题补充:[/b]nclassname="edu.umd.cs.findbugs.<em>ant</em>task.FindBugsTask“ rnrnrn这个路径能找到吗?我咋找不到呢?
eclipseant的安装
<em>eclipse</em>中自带<em>ant</em>插件,但是打开相应的build.xml文件,却没有任何显示,说明<em>ant</em>并没有被正确安装,解决方法: 配置对应的环境变量,例如 “classpath C:/apache-<em>ant</em>-1.8.1/lib” 命令行中跳转到<em>eclipse</em>的安装目录; 执行命令“<em>eclipse</em> -application org.<em>eclipse</em>.equinox.p2.director -repo
Using ANT in Eclipse
Using ANT in Eclipse
Eclipse中使用Ant
Eclipse中使用Ant
eclipse ant rmic的问题?
rnrn rnrn时出错如下:...build.xml: 29: Cannot use SUN rmic, as it is not available. A common solution is to set the environment variable JAVA_HOME or CLASSPATH.rnrn然后我试了下面几种方式都不行:rn1.设置环境变量rn1).JAVA_HOME = C:\j2sdk1.4.2\librn2).JAVA_HOME = C:\j2sdk1.4.2;C:\j2sdk1.4.2\bin;C:\j2sdk1.4.2\librn3).CLASSPATH = C:\j2sdk1.4.2\librn4).CLASSPATH = C:\j2sdk1.4.2;C:\j2sdk1.4.2\bin;C:\j2sdk1.4.2\librn2.我在<em>eclipse</em>->external tools->chater build.xml->property里加环境变量rn1).跟上面一样。rn谢谢!
ant的时候出错
[ejbdoclet] --- Nested Exception ---rn[ejbdoclet] Make sure the jar <em>file</em> containing the javax.ejb.EntityBean class isrnon the classpath specified in the that defined ejbdoclet. These classerns are needed in order to generate correct output.rn[ejbdoclet] at xdoclet.DocletTask.checkClass(DocletTask.java:513)rn[ejbdoclet] at xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTarnsk.java:83)rn[ejbdoclet] at xjavadoc.<em>ant</em>.XJavadocTask.execute(XJavadocTask.java:89)rn[ejbdoclet] at org.apache.tools.<em>ant</em>.UnknownElement.execute(UnknownElement.jarnva:275)rn[ejbdoclet] at org.apache.tools.<em>ant</em>.Task.perform(Task.java:364)rn[ejbdoclet] at org.apache.tools.<em>ant</em>.Target.execute(Target.java:341)rn[ejbdoclet] at org.apache.tools.<em>ant</em>.Target.performTasks(Target.java:369)rn[ejbdoclet] at org.apache.tools.<em>ant</em>.Project.executeTarget(Project.java:1214)rnrn[ejbdoclet] at org.apache.tools.<em>ant</em>.Project.executeTargets(Project.java:1062rn)rn[ejbdoclet] at org.apache.tools.<em>ant</em>.Main.<em>run</em>Build(Main.java:673)rn[ejbdoclet] at org.apache.tools.<em>ant</em>.Main.startAnt(Main.java:188)rn[ejbdoclet] at org.apache.tools.<em>ant</em>.Main.start(Main.java:151)rn[ejbdoclet] at org.apache.tools.<em>ant</em>.Main.main(Main.java:241)rnrnBUILD FAILEDrnD:\roller-bak1\build.xml:112: Unexpected errorrnrnTotal time: 9 secondsrnrn该怎么<em>办</em>?rn
ant编译文件
这个是自己写的一个能用的<em>ant</em><em>编译</em>脚本,需要的就拿去,
ANT配置,打包,编译
ANT配置,打包,<em>编译</em>
ant编译命令总结
作为apache下的一个<em>编译</em>工具,可以用来<em>编译</em>一些较大的java web项目,简单实用方便!
ant编译android项目
如果是没有android library 项, 执行tools下面的android命令:android update projec android update project -p . -t android-21 如果有android library先到library下面执行android update lib-project -p ./  (注意是 lib-project) 再回到项
ant编译java工程
NULL 博文链接:https://liuna718-163-com.iteye.com/blog/1859773
ant编译怪异问题
BUILD FAILEDE:\work\Favorites4.5\build.xml:37: The following error occurred while executingthis line:E:\work\Favorites4.5\MSFService\<em>ant</em>\msfServiceSdkAnt.xml:17: The following error occurred while exe
ant编译,找不到类
项目开发中在对图片进行裁切处理的时候,有时候是会使用到 com.sun 包下的类时, 如果项目使用<em>ant</em><em>编译</em>,会<em>出现</em>错误 com.sun.image.codec.jpeg does not exist 这是因为在JDK1.7+时,Oracle不允许使用sun.*的jar   具体参见http://www.oracle.com/technetwork/java/faq-sun-packag...
Ant 编译 运行 java
  HelloWorld.java package com.chan.test;   public class HelloWorld{   public static void main(String args[]){ System.out.println(&quot;Hello Chan include package&quot;); } }   build.xml &amp;lt;?xml ve...
ant 编译文件出错
rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn我的配置文件如上。但<em>编译</em>的时候<em>出现</em>引用外部的一些jar包引用不到。rn哪位大侠帮忙修改一下哈。
ant 如何编译jsp?
比如要<em>编译</em>为在weblogic上运行,silver上运行的jsp的class,如何写<em>ant</em>的build.xml啊?rnrnrnrnrn
ant 编译脚本问题
<em>ant</em> build.xml<em>编译</em>带有标注的java文件时报错。rnjava文件:rnpackage com.greatmay.model;rnrnimport java.text.DecimalFormat;rnimport java.util.ArrayList;rnimport java.util.Collections;rnimport java.util.Date;rnimport java.util.List;rnrnimport javax.persistence.Column;rnimport javax.persistence.Entity;rnimport javax.persistence.EnumType;rnimport javax.persistence.Enumerated;rnimport javax.persistence.GeneratedValue;rnimport javax.persistence.GenerationType;rnimport javax.persistence.Id;rnimport javax.persistence.Table;rnimport javax.persistence.Transient;rnimport javax.xml.bind.annotation.XmlRootElement;rnimport javax.xml.bind.annotation.XmlTransient;rnrnimport org.codehaus.jackson.annotate.JsonIgnoreProperties;rnimport org.hibernate.annotations.NamedQueries;rnimport org.hibernate.annotations.NamedQuery;rnimport org.hibernate.search.annotations.DocumentId;rnimport org.hibernate.search.annotations.Field;rnimport org.hibernate.search.annotations.Indexed;rnrn@NamedQueries(rn @NamedQuery(rn name = "book.orderByDate",rn query = "from Book s order by status asc, presentDate desc "rn ),rn @NamedQuery(rn name = "book.countAll",rn query = "select Count(*) from Book s"rn ),rn @NamedQuery(rn name = "book.findFree",rn query = "from Book s where s.price = 0 order by status asc, presentDate desc "rn ),rn @NamedQuery(rn name = "book.countFree",rn query = "select Count(*) from Book s where s.price = 0 "rn ),rn)rn@JsonIgnoreProperties(value="categories")rn@Entityrn@Table(name = "book")rn@Indexedrn@XmlRootElementrnpublic class Book extends BaseObject rn private static final long serialVersionUID = -7869107480253849972L;rn public static final String QUERY_ORDERBYDATE = "book.orderByDate";rn public static final String COUNT_COUNTALL = "book.countAll";rn public static final String QUERY_FINDFREE = "book.findFree";rn public static final String COUNT_COUNTFREE = "book.countFree";rn public static final String QUERY_ORDERBYCOMMENTS = "book.orderByComments";rn public static final String QUERY_ORDERBYSALES = "book.orderBySales";rn public static final String DESCRIPTION_PIC = "cover.jpg";rn public static final String PREVIEW_PIC = "preview.jpg";rn public static final String DETAILS_PAGE = "details.html";rn @Idrn @GeneratedValue(strategy = GenerationType.AUTO)rn @DocumentIdrn private Long id;rn @Column(nullable = true)rn private String name;;rn @Column(nullable = true)rn private String <em>file</em>Name;rn @Column(nullable = true)rn @Fieldrn private String category; rn @Column(nullable = true)rn private String descFolderPath;rn @Column(nullable = true, length=511)rn @Field rn private String brief;rn @Column(nullable = true, length=1023)rn @Fieldrn private String description;rn @Column(nullable = true)rn @Fieldrn private String otherinfo; rn @Column(nullable = true)rn @Fieldrn private String publisher;rn @Column(nullable = true)rn private Date presentDate;rn @Column(nullable = true)rn @Fieldrn private String author;rn @Column(nullable = true)rn @Fieldrn private String releationbook;rn @Column(nullable = true)rn private Long point;rn @Column(nullable = true)rn private Double price;rn @Column(nullable = true)rn private Double priceInSales;rn @Column(nullable = true)rn @Enumerated(EnumType.ORDINAL)rn private ProductStatus status;rn rnrn @Column(nullable = true)rn @Fieldrn private String publicOrder;rn @Column(nullable = true)rn @Fieldrn private String pages;rn @Column(nullable = true)rn @Fieldrn private String words;rn @Column(nullable = true)rn @Fieldrn private Date printDate;rn @Column(nullable = true)rn @Fieldrn private String kb;rn @Column(nullable = true)rn @Fieldrn private String paper;rn @Column(nullable = true)rn @Fieldrn private String isbn;rn @Column(nullable = true)rn @Fieldrn private String pakage;rn @Column(nullable = true)rn @Fieldrn private int pjCnt;rn @Column(nullable = true)rn @Fieldrn private int buyCnt;rnrn /**rn * Default constructor - creates a new instance with no values set.rn */rn public Book() rn rnrnrn public Long getId() rn return id;rn rnrnrn @Transient @XmlTransientrn public List getCategories() rn if (category == null || category.isEmpty()) rn return new ArrayList(0);rn rn String[] categorisArray = category.split(",");rn List categories = new ArrayList(categorisArray.length);rn Collections.addAll(categories, categorisArray);rn Collections.sort(categories);rn return categories;rn rnrn public void setCategories(List categories) rn if (categories != null) rn StringBuilder sb = new StringBuilder();rn for (String s : categories) rn sb.append(Category.SPERATER).append(s);rn rn if (sb.length() >= 1) rn sb.deleteCharAt(0);rn rn this.category = sb.toString();rn rn rnrn public void setCategories(String[] categories) rn if (categories != null) rn StringBuilder sb = new StringBuilder();rn for (String s : categories) rn sb.append(Category.SPERATER).append(s);rn rn if (sb.length() >= 1) rn sb.deleteCharAt(0);rn rn this.category = sb.toString();rn rn rnrnrn public String getCategory() rn return category;rn rnrnrn public String getBrief() rn return brief;rn rnrnrn public String getDescription() rn return description;rn rnrnrn public String getOtherinfo() rn return otherinfo;rn rnrnrn public String getName() rn return name;rn rnrnrn public String getPublisher() rn return publisher;rn rnrnrn public Date getPresentDate() rn return presentDate;rn rnrnrn public String getAuthor() rn return author;rn rnrnrn public Double getPrice() rn return price;rn rnrnrn public Double getPriceInSales() rn return priceInSales;rn rnrnrn public ProductStatus getStatus() rn return status;rn rnrnrn public void setId(Long id) rn this.id = id;rn rnrnrn public void setCategory(String category) rn this.category = category;rn rnrnrn public void setBrief(String brief) rn this.brief = brief;rn rnrnrn public void setDescription(String description) rn this.description = description;rn rnrnrn public void setOtherinfo(String otherinfo) rn this.otherinfo = otherinfo;rn rnrnrn public void setName(String name) rn this.name = name;rn rnrnrn public void setPublisher(String publisher) rn this.publisher = publisher;rn rnrnrn public void setPresentDate(Date presentDate) rn this.presentDate = presentDate;rn rnrnrn public void setAuthor(String author) rn this.author = author;rn rnrnrn public void setPrice(Double price) rn this.price = price;rn rnrnrn public void setPriceInSales(Double priceInSales) rn this.priceInSales = priceInSales;rn rnrnrn public void setStatus(ProductStatus status) rn this.status = status;rn rnrnrn public String getFileName() rn return <em>file</em>Name;rn rnrnrn public String getDescFolderPath() rn return descFolderPath;rn rnrnrn public void setFileName(String <em>file</em>Name) rn this.<em>file</em>Name = <em>file</em>Name;rn rnrnrn public void setDescFolderPath(String descFolderPath) rn this.descFolderPath = descFolderPath;rn rnrnrn public Long getPoint() rn return point;rn rnrnrn public void setPoint(Long point) rn this.point = point;rn rnrn @Transientrn public String getDisplayBrief(int length) rn if (brief != null && brief.length() > length) rn return brief.substring(0, length - 1) + "……";rn rn return brief;rn rn @Transientrn public String getDisplayDescription(int length) rn if (description != null && description.length() > length) rn return description.substring(0, length - 1) + "……";rn rn return description;rn rn @Transientrn public Double getRealPrice() rn if (price == 0) rn return price;rn else if (priceInSales ;rn elsern return <em>file</em>size;rn rn rnrn public String getReleationbook() rn return releationbook;rn rnrnrn public void setReleationbook(String releationbook) rn this.releationbook = releationbook;rn rnrnrn public String getPublicOrder() rn return publicOrder;rn rnrnrn public void setPublicOrder(String publicOrder) rn this.publicOrder = publicOrder;rn rnrnrn public String getPages() rn return pages;rn rnrnrn public void setPages(String pages) rn this.pages = pages;rn rnrnrn public String getWords() rn return words;rn rnrnrn public void setWords(String words) rn this.words = words;rn rnrnrn public Date getPrintDate() rn return printDate;rn rnrnrn public void setPrintDate(Date printDate) rn this.printDate = printDate;rn rnrnrn public String getKb() rn return kb;rn rnrnrn public void setKb(String kb) rn this.kb = kb;rn rnrnrn public String getPaper() rn return paper;rn rnrnrn public void setPaper(String paper) rn this.paper = paper;rn rnrn public String getIsbn() rn return isbn;rn rnrnrn public void setIsbn(String isbn) rn this.isbn = isbn;rn rnrnrn public String getPakage() rn return pakage;rn rnrnrn public void setPakage(String pakage) rn this.pakage = pakage;rn rnrnrn public int getPjCnt() rn return pjCnt;rn rnrnrn public void setPjCnt(int pjCnt) rn this.pjCnt = pjCnt;rn rnrnrn public int getBuyCnt() rn return buyCnt;rn rnrnrn public void setBuyCnt(int buyCnt) rn this.buyCnt = buyCnt;rn rnrn报错信息如下:rn [javac] D:\worksapce4-android\DMServ\src\com\greatmay\model\Book.java:54: 非法的表达式开始rn [javac] )rn [javac] ^
ant无法确定 T 的类型参数
[size=medium]在<em>eclipse</em>下使用<em>ant</em>打包<em>编译</em>时,提示[/size] [quote]无法确定 T 的类型参数;对于上限为 int,java.lang.Object 的类型变量 T,不存在唯一最大实例[/quote] [size=medium]其中<em>ant</em> javac task如下[/size] [quote] [/quote] [size=med...
ant编译flex脚本
利用<em>ant</em><em>编译</em>flex脚本,可以直接在你的程序中使用。
ant编译依赖包
<em>ant</em> <em>编译</em>jar包
ant如何编译nutch2.x?
我下载的是nutch2.1 ,看很多网上的教程都是1.x的版本;rn我在官网上看到 1.x不需<em>编译</em>,而2.x则不行,要用<em>ant</em><em>编译</em>(至少网站上是这么说的)rn然后我安装了<em>ant</em>,在<em>编译</em>的时候有问题了。rn2.x的目录结构下直接是 conf,doc,lib,src,build.xml等rn而在src下才有一个运行需要的bin目录rn我进到解压完的根目录,直接<em>ant</em> (里面有build.xml)rn运行一下就卡住了,里面的信息片段:rnrnrn[taskdef] Could not load definitions from resource org/sonar/<em>ant</em>/<em>ant</em>lib.xml. It could not be found.rnrnivy-probe-<em>ant</em>lib:rnrnivy-download:rn [taskdef] Could not load definitions from resource org/sonar/<em>ant</em>/<em>ant</em>lib.xml. It could not be found.rnrnivy-download-unchecked:rnrnivy-init-<em>ant</em>lib:rnrnivy-init:rnrninit:rn [mkdir] Created dir: /home/shaozt/softIns/CrawSource/apache-nutch-2.1/buildrn [mkdir] Created dir: /home/shaozt/softIns/CrawSource/apache-nutch-2.1/build/classesrn [mkdir] Created dir: /home/shaozt/softIns/CrawSource/apache-nutch-2.1/build/releasern [mkdir] Created dir: /home/shaozt/softIns/CrawSource/apache-nutch-2.1/build/testrn [mkdir] Created dir: /home/shaozt/softIns/CrawSource/apache-nutch-2.1/build/test/classesrnrnclean-lib:rnrnresolve-default:rn[ivy:resolve] :: Ivy 2.2.0 - 20100923230623 :: http://<em>ant</em>.apache.org/ivy/ ::rn[ivy:resolve] :: loading settings :: <em>file</em> = /home/shaozt/softIns/CrawSource/apache-nutch-2.1/ivy/ivysettings.xmlrnrn
ant 编译的错误?
@echo offrnrnset JAVA_HOME=c:\jdk1.3.1rnSET APP_BASE=E:/I2K_WebsiternSET APP_HOME=%APP_BASE%/backendservicernSET APP_LIB=%APP_BASE%/resourcesrnset ANT_HOME=e:\jakarta-<em>ant</em>-1.5rnrnif "%1" == "" goto error2rnset XMLFILE=rnif "%1" == "appserver" set XMLFILE=build.xmlrnif "%XMLFILE%" == "" goto error2rnrnecho %XMLFILE%rnrnset _CP=%CP%rnset CP=%ANT_HOME%\lib\<em>ant</em>.jar;%ANT_HOME%\lib\crimson.jar;%ANT_HOME%\lib\jaxp.jarrnset CP=%CP%;.;%APP_LIB%\msbase.jar;%APP_LIB%\mssqlserver.jar;%APP_LIB%\msutil.jar;%APP_LIB%\tree.jar;%APP_LIB%\mail.jar;%APP_LIB%\i2kprojecttree.jar;%APP_LIB%\framework.jar;%APP_LIB%\framework_i2k.jar;%APP_LIB%\FileSystem.jar;%APP_LIB%\servlet.jar;%APP_LIB%\F1J7Swing.jar;%APP_LIB%\infobus.jar;%APP_LIB%\jce1_2.jar;%APP_LIB%\calendar1_0_4.jar;%APP_LIB%\j2ee.jar;rnrnjava -classpath "%CP%" org.apache.tools.<em>ant</em>.Main -DAPP_HOME="%APP_HOME%" -DAPP_LIB="%APP_LIB%" -build<em>file</em> "%APP_HOME%/%XMLFILE%" %2 %3 %4 %5 %6 %7 %8 %9rnrnrn<em>出现</em>如下错误:rn<em>file</em>:E:/I2K_Website/backendservice/build.xml:23: Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.rnrnJAVA_HOME 的设置没有问题.rn请问问题会出在哪里呢?
ant编译程序出错
rn rn rnlib.path是java包的目录,<em>编译</em>web程序的时候提示rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:3: 软件包 javax.servlet.http 不存在rn [javac] import javax.servlet.http.HttpServletRequest;rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:4: 软件包 javax.servlet.http 不存在rn [javac] import javax.servlet.http.HttpServletResponse;rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:5: 软件包 org.apache.struts.action 不存在rn [javac] import org.apache.struts.action.Action;rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:6: 软件包 org.apache.struts.action 不存在rn [javac] import org.apache.struts.action.ActionForm;rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:7: 软件包 org.apache.struts.action 不存在rn [javac] import org.apache.struts.action.ActionForward;rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:8: 软件包 org.apache.struts.action 不存在rn [javac] import org.apache.struts.action.ActionMapping;rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:11: 找不到符号rn [javac] 符号: 类 Actionrn [javac] public final class RegistAction extends Action rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:12: 找不到符号rn [javac] 符号: 类 ActionMappingrn [javac] 位置: 类 struts.action.RegistActionrn [javac] public ActionForward execute(ActionMapping mapping, ActionForm form,rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:12: 找不到符号rn [javac] 符号: 类 ActionFormrn [javac] 位置: 类 struts.action.RegistActionrn [javac] public ActionForward execute(ActionMapping mapping, ActionForm form,rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:13: 找不到符号rn [javac] 符号: 类 HttpServletRequestrn [javac] 位置: 类 struts.action.RegistActionrn [javac] HttpServletRequest request, HttpServletResponse response)rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:13: 找不到符号rn [javac] 符号: 类 HttpServletResponsern [javac] 位置: 类 struts.action.RegistActionrn [javac] HttpServletRequest request, HttpServletResponse response)rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\action\RegistAction.java:12: 找不到符号rn [javac] 符号: 类 ActionForwardrn [javac] 位置: 类 struts.action.RegistActionrn [javac] public ActionForward execute(ActionMapping mapping, ActionForm form,rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\form\UserForm.java:3: 软件包 org.apache.struts.action 不存在rn [javac] import org.apache.struts.action.ActionForm;rn [javac] ^rn [javac] D:\程序\strutsProject\src\struts\form\UserForm.java:5: 找不到符号rn [javac] 符号: 类 ActionFormrn [javac] public class UserForm extends ActionForm rn [javac] ^rn [javac] 14 错误rn我的lib包里面有servlet.jar,用<em>eclipse</em>自动<em>编译</em>没有问题。
ant编译mysql驱动
修改驱动源码后需要重新<em>编译</em>构建,由于mysql<em>编译</em>需要两个jdk版本且还需要hibernate4和junit,这里记录下步骤。 安装<em>ant</em>。 配置两个jdk,5和8。并修改build.xml配置,如下: com.m
Flex Ant编译模板
Flex Ant<em>编译</em>模板 2010年07月16日    as&quot; /&gt; as&quot; /&gt; as&quot; /&gt; as...
ant 批量编译.java
使用 ANT 开发 Java 程序 .(1)安装 JDK: 安装到 c:/jdk,并确认能找到 c:/jdk/bin/java .(2)安装 <em>ant</em>: 把 <em>ant</em> 解压到本地硬盘 c:/<em>ant</em>,并确认能找到c:/<em>ant</em>/bin/<em>ant</em>.bat .(3)设置环境变量: JAVA_HOME:c:/jdk ANT_HOME:c:/<em>ant</em> PATH:在原来的 PATH 开头...
ant编译乱码的解决
<em>ant</em><em>编译</em>war包,会<em>出现</em>乱码,有中文的java文件也会有乱码,解决方法: [code=&quot;java&quot;] 1.将build.xml打开另存为utf-8格式 2.在build.xml文件头部标为utf-8, 3.在编辑任务时加上编码格式: [/code]...
DOS下Ant编译问题
[img=https://img-bbs.csdn.net/upload/201508/05/1438741623_576958.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201508/05/1438741649_633090.jpg][/img]rnrn<em>编译</em><em>ant</em>包的sample,提示错误信息,请问怎么解决?
ant编译以及格式
适合在<em>ant</em>下进行<em>编译</em>的工具,以及一些checkstyle,方便实用
ant编译1.9版本
Apache Ant,是一个将软件<em>编译</em>、测试、部署等步骤联系在一起加以自动化的一个工具,大多用于Java环境中的软件开发。由Apache软件基金会所提供。
设置Ant 编译代理
在<em>ant</em>的 $ANT_HOME目录的build.xml文件中加入如下属性:  proxyport="${proxy.port}"  nonproxyhosts="xyz.svn.com"/> 其中 proxyhost为代理地址 proxport为端口 proxypassword代理密码 proxyuser代理用户 nonproxyhosts一般可以不用,
.Ant安装编译操作手册
在<em>编译</em>flex/java工程是采用Ant自动<em>编译</em>,将<em>编译</em>好的工程进行打包发布.
ant编译JSP
用<em>ant</em> 运行下面的<em>编译</em>,可以将jsp<em>编译</em>为.java,然后再<em>编译</em>为.class,可是运行时会因为jsp页面等代码的错误而停止,大家有什么好的方法 rn========================================================= rn rnrn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rnrn rnrn rn rnrn rn rn rn rn rnrn Compiling generated classes from JSPC rn rn rn rn rn rn rn rn rn rn rn rnrn rn Compile JSP in: $dir-path rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn rn rnrn
ant j2ee 打包编译
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&amp;lt;!-- name:对应工程的名字;default:需要的缺省任务(运行&quot;<em>ant</em>&quot;不指明任务时执行的任务) --&amp;gt;&amp;lt;project name=&quot;WebTest&quot; default=&quot;dist&quot; basedir=&quot;.&quot;&amp;gt;  &amp;l
ANT —— 编译JavaWeb项目
Ant<em>编译</em>JavaWeb项目 What(起因) 因为要将老项目做到CD(持续部署)中,所以需要通过第三方软件<em>编译</em>工具(Ant)进行打包发布,再通过Jenkins执行Ant<em>编译</em>脚本获取<em>编译</em>后文件,做到CD。 Why(何解) &amp;amp;amp;lt;?xml version=&amp;amp;quot;1.0&amp;amp;quot;?&amp;amp;amp;gt; &amp;amp;amp;lt;project name=&amp;amp;quot;<em>ant</em>Name&amp;amp;quot; de
div css命名规范下载
常用的CSS命名规则: 头:header 内容:content/container 尾:footer 导航:nav ... 相关下载链接:[url=//download.csdn.net/download/rambo_china/2111327?utm_source=bbsseo]//download.csdn.net/download/rambo_china/2111327?utm_source=bbsseo[/url]
网吧许愿墙,很好用的!!!下载
简单的交流应用程序!!与客户沟通的好桥梁,广泛应用于…… 相关下载链接:[url=//download.csdn.net/download/sorye/2287703?utm_source=bbsseo]//download.csdn.net/download/sorye/2287703?utm_source=bbsseo[/url]
幕墙产品数据管理(PDM)下载
幕墙产品数据管理(PDM)幕墙产品数据管理(PDM). 相关下载链接:[url=//download.csdn.net/download/tdplm/3554432?utm_source=bbsseo]//download.csdn.net/download/tdplm/3554432?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的