• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

[java] Java Result: 1 error

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic