Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse won't even try to compile/run when told to

When I click the run button, nothing happens. Eclipse Kepler doesn't tell me that there are any errors in my code, but it does tell me that my program is running. There are no errors output, no log files appear, nothing.

Even the below doesn't work:

public class Main {

    public Main() {
    // TODO Auto-generated constructor stub
    }

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        System.out.println("frog");
    }

}

On latest stable release of arch linux, using a version of eclipse installed through the official repos.

EDIT I opened a new, fresh project and everything runs fine. It appears (surprise surprise) the problem is the rest of the code in the project file, not Eclipse. However, even after several restarts of my computer my real project won't run.

I suppose the only thing to do is remove the source files one by one and see if any of them are the problem.

like image 206
ToxicTeacakes Avatar asked Oct 03 '22 23:10

ToxicTeacakes


2 Answers

If anyone else has this problem, I resolved it by doing the following:

  1. Re-installing Eclipse
  2. Creating a new project
  3. Making new class files and copying the information across from the old class files individually.

Evidently, it was a problem with that particular working directory/project.

like image 132
ToxicTeacakes Avatar answered Oct 07 '22 18:10

ToxicTeacakes


Without more informations, there might be some solutions:

  • try to compile and run it by hand and see, if it's an eclipse related bug

  • Maybe you have selected the wrong console in your view? Try to switch through them

  • Maybe an previous program did not terminate and you still see this console

  • Maybe you have a strange colorscheme and you textcolor is the same as background?^^

like image 43
Martin Seeler Avatar answered Oct 07 '22 19:10

Martin Seeler