2017-02-23 38 views
1

突然我開始出現這個錯誤。 它工作正常,直到最近幾個月沒有任何問題。Netbeans 8.02:程序已經運行的一個實例

我面臨的問題是,當我打開與Netbeans相關的文件時,使用雙擊打開第一個實例,但打開第二個文件時使用雙擊。 我得到一個窗口,提示:

An instance of the program is already running with your user directory 
Either a previous session of the program is running on a different computer 
and using the same user directory. 

If another session of program is running with the same user 
directory,please click to cancel to prevent the corruption of the user 
directory. If you are sure that no other instances of the program is running 
with your user directory, click OK to continue. 

我有谷歌的錯誤。我發現的唯一解決方案是您的用戶目錄中存在需要刪除的鎖定文件。

但在我的情況下,我觀​​察到沒有過時的鎖定文件。只有當Netbeans正在運行時,鎖才存在。一旦關閉netbeans,就會自行刪除鎖定文件。

我也刪除了所有的緩存,認爲它可能會導致一些問題。 但它們都不能解決問題。

再次如果我沒有雙擊該文件而直接啓動Netbeans,那麼我無法使用雙擊打開一個單獨的文件,並且我得到相同的錯誤框。

+0

當您嘗試編譯該程序時,您會收到此註釋嗎? – sbowde4

+0

不,我試圖通過雙擊與netbeans關聯的文件資源管理器打開文件時得到了這個。 – Joshi

回答

1

也許這是寫作遲到,但我有完全相同的問題。很多次我卸載並安裝舊版本(如7.x),即使我卸載java jdk :)

我以爲開始使用JetBrains,但我無法打開JetBrains。我搜索了爲什麼JetBrains幾個小時不打開,我意識到問題是卡巴斯基。

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206489659-Error-Cannot-Lock-System-Folders

我卸載卡巴斯基並打開JetBrains公司。

賓果! :)

並隨着該NetBeans(8.2)開始打開沒有任何問題。

我不知道爲什麼卡巴斯基會成爲一個問題。

(平臺:Win 10,x64)

相關問題