You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Eirik Bakke <eb...@ultorg.com> on 2022/10/13 19:40:25 UTC

Problems with all-layers.dat after moving NetBeans directory

Hi, dev.

I'm investigating this old bug, where moving the NetBeans installation directory, seemingly only on Windows, causes various problems on startup:

https://issues.apache.org/jira/browse/NETBEANS-1914

Deleting the cache directory, or more specifically "all-layers.dat", seems to fix the problem. Examining the existing all-layers.dat file does reveal various references to the old NetBeans path.

Are there any NetBeans veterans who might have suggestions for the best way to fix this problem, without requiring the cache dir to be manually deleted?

(Since I don't see the problem on MacOS, I was hoping there might be partially working code already somewhere that attempts to invalidate the cache when the NetBeans directory has changed.)

--  Eirik