Jar files locked by desinger

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Jar files locked by desinger

Postby ForceRs » Mon Aug 24, 2009 7:50 am

I have a catch-all jar file containing all of my image files.

I point my project to this file so that WBP can find the image files when I make calls like this to get them:

Code: Select all
final URL imgUrl2 = getClass().getResource("/TabNormal.gif");
final ImageIcon imageTabNormal = new ImageIcon(imgUrl2);


I use ANT to build the project. After opening a component in WBP and then trying to rebuild the image jar file, the build fails due to the image jar file being locked. Here is the ANT message:

BUILD FAILED
C:\Documents and Settings\bjal1\eclipse3.2\vncfServer\build.xml:1210: Unable to delete file C:\Documents and Settings\bjal1\eclipse3.2\vncfServer\third\uiImages.jar


Unfortunately, even after closing ALL open eclipse tabs, I still cannot rebuild the image file and have to restart eclipse to get the ANT build to succeed -- the file is still help by WBP (or is it eclipse)?
ForceRs
 
Posts: 15
Joined: Thu Jun 17, 2004 12:59 pm

Re: Jar files locked by desinger

Postby Eric Clayberg » Mon Aug 24, 2009 11:03 am

My understanding is that Java itself (and thus Eclipse) keeps the jar open for the duration of the session.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest