IntelliJ Idea under Linux, No such file or directory on main class

后端 未结 6 578
情深已故
情深已故 2021-02-06 00:10

I\'m running IntelliJ Idea under linux. I have created a project and a module inside it, and in that module I have a class (MyClass.class) and when I\'m trying to run it from ID

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 00:51

    Solved it. Remove all jdk/jre you have, install openjdk7.

    Add this line to .bashrc

    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/
    export PATH=$PATH:$JAVA_HOME/bin
    

    Run Idea. Profit. :)

提交回复
热议问题