This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java EE5 Tutorial - 'ant create-tables' BUILD FAILED

 
Paul Mac
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Appologies, this is quite a begineers question, hopefully it's an easy one to answer. I've searched for the last few hours regarding this issue,
trying things and searched the forums here with no similar issue. As you can see below, I cannot create the tables for the bookstore1 application using 'ant'.

I am getting a FileNotFoundException however the delete.sql and tutorial.sql files are at this location C:\javaee\javaeetutorial5\examples\common\sql\javadb\
I have also made sure that the files have read and write access. I know their could be some permissions issues using vista if I installed at C:/ProgramFiles, so everything is in C:/

Another thing I have tried is using the ant command directly even though the PATH is in my enviroment variables, just incase another version was conflicting, as I read about people having such issues.

"C:\Sun\AppServer\lib\ant\bin\ant create-tables" => This gave the same error as below. Im not sure what other information may help you help me here, so just ask.

Annoying thing is, this example worked fine when I set up the environment on my work laptop (which I have no access to now) earlier, I didn't have this issue.

Thanks for your help.

/Paul.


 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ant appears to be looking for a file called "C:\javaee\javaeetutorial5\examples\web\bookstore1\=C:\javaee\javaeetutorial5\examples\common\sql\javadb\delete.sql" - can you post your target?
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to Javaranch Paul!
 
Paul Mac
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:Ant appears to be looking for a file called "C:\javaee\javaeetutorial5\examples\web\bookstore1\=C:\javaee\javaeetutorial5\examples\common\sql\javadb\delete.sql" - can you post your target?


Thanks for replies and the welcome. [Yea, I know it's says it's looking for that file, but it exists in C:\javaee\javaeetutorial5\examples\common\sql\javadb\ and I also copied delete.sql to C:\javaee\javaeetutorial5\examples\web\bookstore1\

I am working locally on Windows Vista. Thanks for help]

Edit - looking through my build properties I found 'javaee.tutorial.home==C:/javaee/javaeetutorial5'. I must have copied a second equals sign while copying directory path. It now works as expected.
Many thanks, I can now continue the tutorial
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic