简体   繁体   English

创建新项目或新类时,Eclipse会冻结

[英]Eclipse freezes when creating a new project or a new class

I just installed Eclipse in Ubuntu. 我刚刚在Ubuntu中安装了Eclipse。 When I create a new project or create a new class, Eclipse freezes. 当我创建一个新项目或创建一个新类时,Eclipse会冻结。

The confusing thing is that when I check the workspace, I find the project or the class that I create which means it can create projects and classes but why does it freeze and, in this case, I should kill Eclipse and restart again? 令人困惑的是,当我检查工作区时,我发现我创建的项目或类,这意味着它可以创建项目和类,但为什么它会冻结,在这种情况下,我应该杀死Eclipse并重新启动?

Also, when I write a code in the class and run it, it freezes. 此外,当我在类中编写代码并运行它时,它会冻结。

The problem was with the version of GTK+3. 问题出在GTK + 3的版本上。 All what I did is in eclipse.ini I included the following two lines: 我所做的就是在eclipse.ini我包括以下两行:

--launcher.GTK_version
2

before the line --launcher.appendVmargs 在行之前--launcher.appendVmargs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM