Unable to delete file with netbeans 6.1 and jdk1.5

View: New views
4 Messages — Rating Filter:   Alert me  

Unable to delete file with netbeans 6.1 and jdk1.5

by Farooq :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am using Netbeans 6.1 with jdk1.5.0_15. While Clean & Build a project I am getting the following error. I have seen different post regarding that issue in different forums and I come to know that in Netbeans 6.1 this bug has been resolved, but I am still facing it and believing that I cannot able to use netbeans. Is there anyone who know any workaround to solve this problem?
Here is the output of my build:

pre-init:
pre-load-properties:
exists.config.active:
exists.netbeans.user:
exists.user.properties.file:
load-properties:
exists.platform.active:
exists.platform.configuration:
exists.platform.profile:
basic-init:
cldc-pre-init:
cldc-init:
cdc-init:
ricoh-pre-init:
ricoh-init:
semc-pre-init:
semc-init:
savaje-pre-init:
savaje-init:
nokiaS80-pre-init:
nokiaS80-init:
nsicom-pre-init:
nsicom-init:
post-init:
init:
conditional-clean-init:
conditional-clean:
pre-clean:
clean-timestamp:
Deleting: C:\java\Projects\MAS\build\.timestamp
clean-preprocessed:
Deleting directory C:\java\Projects\MAS\build\preprocessed
clean-classes:
Deleting directory C:\java\Projects\MAS\build\compiled
clean-obfuscated:
clean-preverified:
clean-manifest:
clean-jar:
Deleting: C:\java\Projects\MAS\dist\MAS.jar
C:\java\Projects\MAS\nbproject\build-impl.xml:327: The following error occurred while executing this line:
C:\java\Projects\MAS\nbproject\build-impl.xml:1050: Unable to delete file C:\java\Projects\MAS\dist\MAS.jar
BUILD FAILED (total time: 0 seconds)

Regards,
Farooq

Re: Unable to delete file with netbeans 6.1 and jdk1.5

by Sergio Lopes-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I am using Netbeans 6.1 with jdk1.5.0_15. While Clean & Build a project I am
> getting the following error. I have seen different post regarding that issue
> in different forums and I come to know that in Netbeans 6.1 this bug has
> been resolved, but I am still facing it and believing that I cannot able to
> use netbeans. Is there anyone who know any workaround to solve this problem?


Have you made sure the application you are developing is not running.
You are trying to delete the Jar file that represent your application,
if the java process that executed it is still runnig, usually when the
aplication ends in an abnormal way, you'll not be able to clean the
project.

The quick way to clean is to end the java process that is blocked, go
to you task manager, find the process and end it. Note that you should
have at least two process named java.exe running, one is for the IDE
the other is for you application. I would say that the one consuming
less memory will be the one you want to kill.

The correct way to solve the problem would be to find why is your
application still running.

--
Sem mais e com os melhores cumprimentos,

Sérgio Lopes

Re: Unable to delete file with netbeans 6.1 and jdk1.5

by fcoutel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

My application is compiled outside Netbeans and I keep having the same problem, Netbeans 6.1 keep locking some of my jars. I dont have any other processes with java running. As soon as I kill NB then I can compile fine. This is a real pain as I have to start NB all over again :(

Any workaround for this?


Sergio Lopes-3 wrote:
> I am using Netbeans 6.1 with jdk1.5.0_15. While Clean & Build a project I am
> getting the following error. I have seen different post regarding that issue
> in different forums and I come to know that in Netbeans 6.1 this bug has
> been resolved, but I am still facing it and believing that I cannot able to
> use netbeans. Is there anyone who know any workaround to solve this problem?


Have you made sure the application you are developing is not running.
You are trying to delete the Jar file that represent your application,
if the java process that executed it is still runnig, usually when the
aplication ends in an abnormal way, you'll not be able to clean the
project.

The quick way to clean is to end the java process that is blocked, go
to you task manager, find the process and end it. Note that you should
have at least two process named java.exe running, one is for the IDE
the other is for you application. I would say that the one consuming
less memory will be the one you want to kill.

The correct way to solve the problem would be to find why is your
application still running.

--
Sem mais e com os melhores cumprimentos,

Sérgio Lopes

Re: Unable to delete file with netbeans 6.1 and jdk1.5

by Gregg Wonderly-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I encounter this error from time to time, when quickly switching between
compiling and running and doing other things with the project simultaneously.
Most likely it is a concurrency issue with resource release inside the IDE I'd
guess.  What I have found is that sometimes I can remedy the problem by either
running, compiling or "cleaning" my project.

Gregg Wonderly

fcoutel wrote:

> Hi,
>
> My application is compiled outside Netbeans and I keep having the same
> problem, Netbeans 6.1 keep locking some of my jars. I dont have any other
> processes with java running. As soon as I kill NB then I can compile fine.
> This is a real pain as I have to start NB all over again :(
>
> Any workaround for this?
>
>
>
> Sergio Lopes-3 wrote:
>>> I am using Netbeans 6.1 with jdk1.5.0_15. While Clean & Build a project I
>>> am
>>> getting the following error. I have seen different post regarding that
>>> issue
>>> in different forums and I come to know that in Netbeans 6.1 this bug has
>>> been resolved, but I am still facing it and believing that I cannot able
>>> to
>>> use netbeans. Is there anyone who know any workaround to solve this
>>> problem?
>>
>> Have you made sure the application you are developing is not running.
>> You are trying to delete the Jar file that represent your application,
>> if the java process that executed it is still runnig, usually when the
>> aplication ends in an abnormal way, you'll not be able to clean the
>> project.
>>
>> The quick way to clean is to end the java process that is blocked, go
>> to you task manager, find the process and end it. Note that you should
>> have at least two process named java.exe running, one is for the IDE
>> the other is for you application. I would say that the one consuming
>> less memory will be the one you want to kill.
>>
>> The correct way to solve the problem would be to find why is your
>> application still running.
>>
>> --
>> Sem mais e com os melhores cumprimentos,
>>
>> Sérgio Lopes
>>
>>
>