NetBeans 在 Ubuntu 64 上启动时锁定

发布于 2024-10-15 09:17:57 字数 724 浏览 2 评论 0原文

我在以 root 身份安装 NetBeans 时犯了一个错误:

sudo sh /opt/myDirectory/netbeansInstaller.sh

我安装了它,启动了它,并创建了一个虚拟项目只是为了熟悉它。然后我关闭了 NetBeans,并在当天晚些时候重新开始使用它。当我尝试以普通用户身份打开/运行 NetBeans 时,它会启动并显示各种错误消息,抱怨权限被拒绝

所以我使用卸载程序完全卸载了NetBeans,甚至删除了我用它创建的项目。我什至从我的下载文件夹中删除了安装程序本身。

我以普通用户身份重新安装了 NetBeans,但仍然收到权限错误。现在发生的情况是它启动,生成一些错误弹出窗口,然后完全冻结。 我注意到默认情况下它仍在尝试启动我已删除的项目

我认为正在发生的事情是这样的:

  1. 我以普通用户身份运行 NetBeans,
  2. NetBeans 已在某处缓存了我的旧项目(当我以 root 身份使用旧 NB 安装时创建的)是在启动时加载的项目
  3. 它会自动抱怨:它无法正确加载项目,因为我不是 root
  4. 它找不到我的旧项目(因为它已被删除),因此它冻结在这种“等待状态”

还有其他人遇到过这个问题吗?有什么方法可以强制 NetBeans(可能从终端)执行“干净加载”,而不会尝试加载任何项目?还有其他明显的解决方案吗?

谢谢!

I made the mistake of installing NetBeans as root:

sudo sh /opt/myDirectory/netbeansInstaller.sh

I installed it, launched it, and created a dummy project just to get familiar with it. Then I closed NetBeans and came back to it later on in the day. When I try to open/run NetBeans as my normal user, it launches with all sorts of error messages complaining about denied permissions.

So I uninstalled NetBeans completely using the uninstaller, and even deleted the project I created with it. I even deleted the installer itself out of my Downloads folder.

I re-installed NetBeans as normal user, and am still getting permissions errors. Now what happens is it launches, generates some error popups, and then freezes completely. I notice that it is still attempting to launch my deleted project by default!

Here is what I think is happening:

  1. I run NetBeans as normal user
  2. NetBeans has cached, somewhere, that my old project (which was created when I was using the old NB install as root) is the project to load at startup
  3. It automatically complains that it can't load the project properly because I'm not root
  4. It can't find my old project (because its deleted) and so it freezes in this "wait state"

Has anybody else ever had this problem? Any way to force NetBeans (perhaps from the terminal) to do a "clean load" where it won't attempt to load any projects? ANy other obvious solutions?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痴梦一场 2024-10-22 09:17:57

您可以尝试分别删除 /root 和主目录中的 .netbeans 文件夹。 Netbeans 可能想要读取它没有权限的 /root/.netbeans 文件夹。

You could try deleting the .netbeans folders in the /root and in your home directory respectively. Netbeans maybe wants to read the /root/.netbeans folder for which it has no permission.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文