Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6825617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:03:16+00:00 2026-05-26T22:03:16+00:00

I’m running IntelliJ Idea under linux. I have created a project and a module

  • 0

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 IDE, I get

ERROR: MyClass.class (No Such file or directory)

Can somebody explain me why IntelliJ Idea doesn’t recognize the classes inside my module? I know it should be a problem regarding module settings but I can’t figure it out. I’m using Ubuntu 11.10

OK I place here the paths and everything for all to see 🙂

type : echo $PATH
Result:
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-7-openjdk-i386/bin:/usr/lib/jvm/java-7-openjdk-i386/bin:/usr/lib/jvm/java-7-openjdk-i386/bin

type: echo $JAVA_HOME
Result:
/usr/lib/jvm/java-7-openjdk-i386

type: ./idea.sh
Result:
NOTE: If you have both Sun JDK and OpenJDK installed
please validate either IDEA_JDK or JDK_HOME environment variable points to valid Sun JDK installation

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:03:16+00:00Added an answer on May 26, 2026 at 10:03 pm

    Arkde, I have a possible explanation why Jaroslav’s solution with JDK7 didn’t work for you.

    Maybe you had mixed Java versions in various alternatives items, possibly conflicting with the version that environment variables like JAVA_HOME and JDK_HOME point to?

    Maybe something points to the /usr/lib/jvm/default-java symlink as the JDK home, and that symlink points to a different version of JDK than intended?

    Did you try resetting alternatives for all Java tools to version 7? Like this:

    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
    

    What do the following commands output on your system?

    echo $JAVA_HOME
    echo $JDK_HOME
    ls -l /usr/lib/jvm/default-java
    update-java-alternatives --list
    update-alternatives --list java
    

    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 open("SomeClass.class", O_RDONLY) = -1 ENOENT (No such file or directory) – no path to the project output directory and to appropriate package.

    So I’ve apt-get installed JDK 7 along JDK 6:

    apt-get install openjdk-7-doc openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib openjdk-7-source
    

    In Ubuntu 11.10 Oneiric, OpenJDK 6 isn’t removable if you want OpenJDK 7. JDK 7 is dependent on JDK 6…

    So I’ve:

    1. updated alternatives configuration as specified above,
    2. changed the /usr/lib/jvm/default-java symlink to point to java-7-openjdk-amd64 ,
    3. double checked all the environment variables (my JAVA_HOME and JDK_HOME both point to /usr/lib/jvm/default-java),
    4. reconfigured my project’s SDK appropriately (and for all the modules in the project),

    and voila – problem solved!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I have a jquery bug and I've been looking for hours now, I can't
Basically, what I'm trying to create is a page of div tags, each has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.