Copy from browser paste to netbeans not working. How could this be happen? When I try to paste notepad, it is working, but when try to netbeans it is not working? I am in shock
7 Answers
Try to make an empty copy (Ctrl+C without selection) within Netbeans and then try again to perform copying from browser or another application. It works for me after many solutions I tried.
This bug report also suggests adding
-J-Dnetbeans.slow.system.clipboard.hack=false
to the netbeans_default_options
in netbeans.conf
, but it did not work for me.

- 774
- 6
- 17

- 349
- 2
- 5
-
is it invalid for the parameter? – gumuruh Oct 22 '20 at 15:51
-
1@gumuruh I don't understand the question? Anyway, just try to make an empty copy within the Netbeans to reset the clipboard, that works for me. – Dejan Stojanovic Oct 29 '20 at 07:54
This Problem is known for over 10 years now and still not fixed.
See https://netbeans.org/bugzilla/show_bug.cgi?id=88161
Workaround: Restart the IDE.

- 478
- 4
- 4
It looks like the NetBeans IDE assumes that what a developer does with other applications (clipboard operations) is not relevant to NB. The only time that NB does not apply this assumption is when the clipboard is empty. The NB clipboard must first be emptied by cutting or copying nothing (similar to previously posted answers). There is no menu item; there is no shortcut to clear the NB clipboard.
This problem still applies to NB 12.0 as of 2021/5/18.

- 897
- 1
- 12
- 19
-
6
-
2On Win11 JDK17 Netbeans 13, not selecting anything copies the whole line. – Tugalsan Karabacak Apr 13 '22 at 08:30
-
1
Selecting text and dragging into the Netbeans still works if you are lazy to restart.

- 71
- 1
- 3
I'm facing the same problem. If you use cut (ctrl+x) and paste (ctrl+v) instead of copy (ctrol+c) it works.

- 1,066
- 2
- 6
- 10

- 62
- 2
-
1
-
This worked for me. ctrl-X in Maven, then Ctrl-V in other app. The return to Maven and Ctrl-Z to restore the text. – David A Stumpf Aug 22 '22 at 06:00
Stop NB and run NB with Administrator privilege, it works!

- 1
- 1
-
As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 14 '22 at 13:44
- Press Windows+R
- type %appdata%
- Go to local folder in AppData (you might be in Roaming folder go back one)
- Go to Netbeans folder
- And delete Cache folder.

- 35
- 2