Home  >  Q&A  >  body text

ubuntu12.04安装idea15社区版报错

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.

是要配置环境变量?

PHP中文网PHP中文网2760 days ago876

reply all(1)I'll reply

  • 阿神

    阿神2017-04-22 09:01:21

    I guess it would be better to change to oracle jdk

    reply
    0
  • Cancelreply