Bug 269887 - Cannot delete output jar when JShell console is opened
Cannot delete output jar when JShell console is opened
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: JShell
Dev
PC Windows 7
: P2 (vote)
: Dev
Assigned To: Svata Dedic
:
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo