File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[java] Java Result: 1 error

 
rajareddy annavaarm
Ranch Hand
Posts: 96
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Buildfile: D:\eclipse\workspace\AlrrsTest\build.xml
main:
[echo] Building Project for deployment type: trial
init:
clean:
[echo] + ===================================================== +
[echo] + +
[echo] + Clean +
[echo] + +
[echo] + ===================================================== +
[delete] Deleting directory D:\eclipse\workspace\AlrrsTest\output
init:
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\classes
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\dist
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\gen
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\gen\META-INF
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\gen\WEB-INF
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\bin
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\docs
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\junit
compile:
compile.preprocessing:
[echo] + ===================================================== +
[echo] + +
[echo] + Pre-compiling +
[echo] + +
[echo] + ===================================================== +
compile.processing:
[echo] + ===================================================== +
[echo] + +
[echo] + Compiling +
[echo] + +
[echo] + ===================================================== +
[javac] Compiling 267 source files to D:\eclipse\workspace\AlrrsTest\output\classes
[javac] D:\eclipse\workspace\AlrrsTest\src\web\com\sns\govt\lri\alrrs\common\util\UploadFileUtil.java:964: warning: finally clause cannot complete normally
[javac] }
[javac] ^
[javac] D:\eclipse\workspace\AlrrsTest\src\web\com\sns\govt\lri\alrrs\notices\util\NoticeImportUtil.java:465: warning: finally clause cannot complete normally
[javac] }
[javac] ^
[javac] 2 warnings
compile.postprocessing:
[echo] + ===================================================== +
[echo] + +
[echo] + Post-compiling +
[echo] + +
[echo] + ===================================================== +
[copy] Copying 1 file to D:\eclipse\workspace\AlrrsTest\output\classes
init:
jar:
[echo] + ===================================================== +
[echo] + +
[echo] + Building jar files +
[echo] + +
[echo] + ===================================================== +
[jar] Building jar: D:\eclipse\workspace\AlrrsTest\output\dist\alrrsEJBrel1_0.jar
init:
ejbc:
[echo] + ===================================================== +
[echo] + +
[echo] + EJBC +
[echo] + +
[echo] + ===================================================== +
[delete] Deleting 1 files from D:\eclipse\workspace\AlrrsTest\output\dist
[java] ERROR: source file: D:\eclipse\workspace\AlrrsTest/output/dist/PRE_alrrsEJBrel1_0.jar could not be found.
[java] Java Result: 1
init:
war:
[echo] + ===================================================== +
[echo] + +
[echo] + Building war files +
[echo] + +
[echo] + ===================================================== +
[echo] \\\\\\\\\\\\\\\\\\\\\war.junitee target completed//////////////////////
init:
war.project:
[copy] Copying 1 file to D:\eclipse\workspace\AlrrsTest\output\gen\WEB-INF
[war] Building war: D:\eclipse\workspace\AlrrsTest\output\dist\alrrsWARrel1_0.war
[echo] \\\\\\\\\\\\\\\\\\\\\war.project//////////////////////
init:
ear:
[echo] + ===================================================== +
[echo] + +
[echo] + Building ear files +
[echo] + +
[echo] + ===================================================== +
[ear] Building ear: D:\eclipse\workspace\AlrrsTest\output\dist\alrrsEARrel1_0.ear
[copy] Copying 5 files to D:\eclipse\workspace\AlrrsTest\output\dist
BUILD SUCCESSFUL
Total time: 1 minute 59 seconds


I am getting "[java] Java Result: 1"(bolded one) output,when i am running ANT.what is the reason ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[delete] Deleting 1 files from D:\eclipse\workspace\AlrrsTest\output\dist
[java] ERROR: source file: D:\eclipse\workspace\AlrrsTest/output/dist/PRE_alrrsEJBrel1_0.jar could not be found.

Are you deleting your jar before trying to access it?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic