ubuntu12.04安装idea15社区版报错

发布于 2022-09-02 00:11:39 字数 2771 浏览 18 评论 0

rt
ubuntu12.04+openjdk7

java version "1.5.0"
gij (GNU libgcj) version 4.6.3

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Start Failed: Internal error. Please report to http://jb.gg/ide/critical-startup-errors

java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
   at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:95)
   at com.intellij.openapi.application.PathManager.loadProperties(PathManager.java:347)
   at com.intellij.ide.BootstrapClassLoaderUtil.initClassLoader(BootstrapClassLoaderUtil.java:52)
   at com.intellij.ide.Bootstrap.main(Bootstrap.java:32)
   at com.intellij.idea.Main.main(Main.java:91)


Also, an UI exception occurred on attempt to show above message:
java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass(libgcj.so.12)
   at com.intellij.util.containers.ConcurrentIntObjectHashMap.getUnsafe(ConcurrentIntObjectHashMap.java:2787)
   at com.intellij.util.containers.ConcurrentIntObjectHashMap.<clinit>(ConcurrentIntObjectHashMap.java:2752)
   at java.lang.Class.initializeClass(libgcj.so.12)
   at com.intellij.util.containers.ContainerUtil.createConcurrentIntObjectMap(ContainerUtil.java:2433)
   at com.intellij.util.containers.ConcurrentRefValueIntObjectHashMap.<init>(ConcurrentRefValueIntObjectHashMap.java:31)
   at com.intellij.util.containers.ConcurrentWeakValueIntObjectHashMap.<init>(ConcurrentWeakValueIntObjectHashMap.java:31)
   at com.intellij.util.containers.ContainerUtil.createConcurrentIntObjectWeakValueMap(ContainerUtil.java:2468)
   at com.intellij.openapi.util.Key.<clinit>(Key.java:38)
   at java.lang.Class.initializeClass(libgcj.so.12)
   at com.intellij.util.ui.UIUtil.<clinit>(UIUtil.java:198)
   at java.lang.Class.initializeClass(libgcj.so.12)
   at com.intellij.idea.Main.showMessage(Main.java:319)
   at com.intellij.idea.Main.showMessage(Main.java:292)
   at com.intellij.idea.Main.main(Main.java:94)
Caused by: java.lang.RuntimeException: Could not find 'theUnsafe' field in the class sun.misc.Unsafe
   at com.intellij.util.concurrency.AtomicFieldUpdater.getUnsafe(AtomicFieldUpdater.java:44)
   at com.intellij.util.concurrency.AtomicFieldUpdater.<clinit>(AtomicFieldUpdater.java:38)
   at java.lang.Class.initializeClass(libgcj.so.12)
   ...14 more

重新安装了openjdk,再次安装,提示如下:

JDK Required: 'tools.jar' seems to be not in IDEA classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.

是要配置环境变量?

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

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

发布评论

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

评论(1

猫性小仙女 2022-09-09 00:11:39

我猜的话换成oracle jdk应该就好了

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