Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Arkde, I have a possible explanation why Jaroslav's solution with JDK7 didn't work for you.</p> <p>Maybe you had mixed Java versions in various <strong>alternatives</strong> items, possibly conflicting with the version that environment variables like <code>JAVA_HOME</code> and <code>JDK_HOME</code> point to?</p> <p>Maybe something points to the <code>/usr/lib/jvm/default-java</code> symlink as the JDK home, and that symlink points to a different version of JDK than intended?</p> <p>Did you try resetting alternatives for all Java tools to version 7? Like this:</p> <pre><code>update-java-alternatives --list # ...see what JDK's are available, choose the one that corresponds to Java 7 # and set it to be the default in alternatives: sudo update-java-alternatives --set java-1.7.0-openjdk-amd64 # or interactively: sudo update-alternatives --config java </code></pre> <p>What do the following commands output on your system?</p> <pre><code>echo $JAVA_HOME echo $JDK_HOME ls -l /usr/lib/jvm/default-java update-java-alternatives --list update-alternatives --list java </code></pre> <p>I had exactly the same problem. I've performed strace on the Idea process and in the log I saw it trying to open several .class files without the path to them specified - like <code>open("SomeClass.class", O_RDONLY) = -1 ENOENT (No such file or directory)</code> - no path to the project output directory and to appropriate package. </p> <p>So I've apt-get installed JDK 7 along JDK 6:</p> <pre><code>apt-get install openjdk-7-doc openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib openjdk-7-source </code></pre> <p>In Ubuntu 11.10 Oneiric, OpenJDK 6 isn't removable if you want OpenJDK 7. JDK 7 is dependent on JDK 6...</p> <p>So I've:</p> <ol> <li>updated alternatives configuration as specified above,</li> <li>changed the <code>/usr/lib/jvm/default-java</code> symlink to point to <code>java-7-openjdk-amd64</code> ,</li> <li>double checked all the environment variables (my <code>JAVA_HOME</code> and <code>JDK_HOME</code> both point to <code>/usr/lib/jvm/default-java</code>),</li> <li>reconfigured my project's SDK appropriately (and for all the modules in the project),</li> </ol> <p>and voila - problem solved!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload