Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Ant / javac task keeps handle on jars in classpath, can't delete
Ant / javac task keeps handle on jars in classpath, can't delete [message #146650] Mon, 20 October 2003 12:09 Go to next message
Eclipse UserFriend
Originally posted by: adamw.cipheroptics.com

Eclipse 3 M3 and M4
Windows 2000

When I run an Ant script that has a target that executes javac, the jar
files that are referenced in the javac task are still held open. A task that
is run later in the script cannot delete the jar files because that are
still 'open'. When I run SysInternals' Process Explorer and search for the
name of the jar file, I can see that javaw.exe (Eclipse) still has a handle
on the jar file(s), event though the external tool has been terminated.
Anyone seen this or know how to fix it?

adam
Re: Ant / javac task keeps handle on jars in classpath, can't delete [message #146662 is a reply to message #146650] Mon, 20 October 2003 12:18 Go to previous message
Eclipse UserFriend
Run Ant in an external VM (JRE tab of the Ant launch configuration).
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=29668 for someone else who
had trouble
And https://bugs.eclipse.org/bugs/show_bug.cgi?id=24448 for why the
classloader persists.

HTH
Darins

"Adam Williams" <adamw@cipheroptics.com> wrote in message
news:bn119s$gmq$1@eclipse.org...
> Eclipse 3 M3 and M4
> Windows 2000
>
> When I run an Ant script that has a target that executes javac, the jar
> files that are referenced in the javac task are still held open. A task
that
> is run later in the script cannot delete the jar files because that are
> still 'open'. When I run SysInternals' Process Explorer and search for the
> name of the jar file, I can see that javaw.exe (Eclipse) still has a
handle
> on the jar file(s), event though the external tool has been terminated.
> Anyone seen this or know how to fix it?
>
> adam
>
>
Previous Topic:First use impossible
Next Topic:Order of global property files for ANT
Goto Forum:
  


Current Time: Wed May 07 19:23:52 EDT 2025

Powered by FUDForum. Page generated in 0.02854 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top