Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans stuck at startup

Tags:

java

netbeans

I was working with a big project on Netbeans. I attached some source code on third party library and all went smooth. Today I have the following popup message (I already had seen before obviously):

The file [...] cannot be safely opened with encoding windows-1252. Do you want to continue opening it?

The two buttons, yes and no, are not responsive. If I close the popup with the red cross it does nothing after a 1 sec loading. Is there a way to "clean" the open file in the netbeans workspace to avoid this error?

SO Windows 8.1, Netbeans 8.0.2

Thanks.

like image 450
Razlo3p Avatar asked Oct 19 '15 08:10

Razlo3p


2 Answers

One general solution to this kind of problem can be to clear the netbeans cache.

Quit NetBeans and find the cache folder - mine is at C:\Users\OldCurmudgeon\AppData\Local\NetBeans\Cache. Delete the whole folder - this can take a while as there can be a lot of files in there.

Netbeans will create a new one on next start.

Note that this will slow down netbeans for a while but it won't be long before it is back up to speed again.

like image 76
OldCurmudgeon Avatar answered Sep 21 '22 09:09

OldCurmudgeon


  1. Quit NetBeans.
  2. go to the last Project folder then remove the project from the folder.
  3. Open NetBeans.
like image 28
Pichet Jiranarumit Avatar answered Sep 21 '22 09:09

Pichet Jiranarumit