This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269887 - Cannot delete output jar when JShell console is opened
Summary: Cannot delete output jar when JShell console is opened
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JShell (show other bugs)
Version: Dev
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-21 08:49 UTC by Jiri Prox
Modified: 2017-05-05 10:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2017-02-21 08:49:25 UTC
The output .jar file cannot be deleted when JShell is opened for the project. This blocks clean&build action

Steps to reproduce:
1) create new application
2) add module-info.jar
3) run JShell from the project context menu
4) call clean&build
->
C:\Users\jprox\Documents\NetBeansProjects\JavaApplication48\nbproject\build-impl.xml:1665: Unable to delete file C:\Users\jprox\Documents\NetBeansProjects\JavaApplication48\dist\JavaApplication48.jar
BUILD FAILED (total time: 1 second)


Product Version: NetBeans IDE Dev (Build 201702200002)
Java: 1.8.0_121; Java HotSpot(TM) 64-Bit Server VM 25.121-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_121-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Svata Dedic 2017-05-05 10:45:05 UTC
I've filtered out JARs from jshell configuration; it should now work with classes only, which it hopefully closes during its operation -- jet-main#b7914944d400