You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Nirmal Fernando <ni...@gmail.com> on 2010/04/17 19:09:55 UTC

Build Failed Error

Hi All,

Up to today I was able to compile and build derby from source without
any problem. But suddenly I got an Build fail message, which I pasted
below.

BUILD FAILED
C:\OtherNirmal\GSoC\Code\build.xml:1329: Unable to rename old file (C:\OtherNirm
al\GSoC\Code\jars\sane\derby.jar) to temporary file

So, I deleted all the jars inside sane and tried to build, and it was
successful.

But it is annoying to delete all the jars every time I perform a build.

I would be grateful if some one can help me.

Thank you very much.

-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Re: Build Failed Error

Posted by Nirmal Fernando <ni...@gmail.com>.
Hi Myrna,

Thanks for replying.

> Hi Nirmal,
>
> The only thing that makes sense is that you somehow still had a
> process open that was using derby.jar. (Perhaps a network server
> process from within an IDE running a test?) And that you released the
> process - perhaps by closing your IDE?

 I did not close Eclipse IDE it was running until now, and just now I
closed it to check whether it is the case, but still I am getting that
error message.

 - or it finished some other way
> before you tried deleting (or you shouldn't have been able to delete
> the derby.jar).

I experienced this several time after this error occurred, that is
sometimes I forgot to exit ij before trying to delete jars, which gave
me an error.

I did a bit investigation on this, by deleting jars one by one as in
order they give me that particular error. But not sure whether it will
useful to give me an exact reason/ possible reasons.

Jars needed to delete:

derby.jar
derbytools.jar
derbynet.jar
derbyclient.jar
derbyrun.jar


Thanks,
-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Re: Build Failed Error

Posted by Myrna van Lunteren <m....@gmail.com>.
On Sat, Apr 17, 2010 at 10:09 AM, Nirmal Fernando
<ni...@gmail.com> wrote:
> Hi All,
>
> Up to today I was able to compile and build derby from source without
> any problem. But suddenly I got an Build fail message, which I pasted
> below.
>
> BUILD FAILED
> C:\OtherNirmal\GSoC\Code\build.xml:1329: Unable to rename old file (C:\OtherNirm
> al\GSoC\Code\jars\sane\derby.jar) to temporary file
>
> So, I deleted all the jars inside sane and tried to build, and it was
> successful.
>
> But it is annoying to delete all the jars every time I perform a build.
>
> I would be grateful if some one can help me.
>
> Thank you very much.
>
> --
> Best Regards,
> Nirmal
>
> C.S.Nirmal J. Fernando
> Department of Computer Science & Engineering,
> Faculty of Engineering,
> University of Moratuwa,
> Sri Lanka.
>

Hi Nirmal,

The only thing that makes sense is that you somehow still had a
process open that was using derby.jar. (Perhaps a network server
process from within an IDE running a test?) And that you released the
process - perhaps by closing your IDE? - or it finished some other way
before you tried deleting (or you shouldn't have been able to delete
the derby.jar).

Myrna

Re: Build Failed Error

Posted by Kathey Marsden <km...@sbcglobal.net>.
On 4/17/2010 10:09 AM, Nirmal Fernando wrote:
> Hi All,
>
> Up to today I was able to compile and build derby from source without
> any problem. But suddenly I got an Build fail message, which I pasted
> below.
>
> BUILD FAILED
> C:\OtherNirmal\GSoC\Code\build.xml:1329: Unable to rename old file (C:\OtherNirm
> al\GSoC\Code\jars\sane\derby.jar) to temporary file
>
> So, I deleted all the jars inside sane and tried to build, and it was
> successful.
>    
I started seeing this in my environment when I moved from using classes 
in my classpath to  jars. This was a good switch to catch jar specific 
failures, but somehow it seemed the build was accessing the jars while 
trying to build them.  Since then I have been building with a script 
that removes the jars first before building them.  I  just   confirmed 
that I still see the error with my classpath if I do not remove the jars 
first.

.;C:\cygwin\svn4\trunk\jars\sane/derbyrun.jar;C:\cygwin\svn4\trunk\jars\sane\derbyTesting.jar;C:\cygwin\svn4\trunk\tools\java\junit.jar;C:\cygwin\svn4\trunk/tools/java/jakarta-oro-2.0.8.jar

I am not sure if this is a bug with the build or if you just have to do 
the cleanup first.  It would be nice if somehow the buildjars target 
could remove them first to avoid the error.