-1

I have a java project 'eartquake' in Eclipse containing several packages. The project icon contains a red exclamation mark. I cannot find out what it means. When trying to run any package of this project I get the ClassNotFoundException error. When I run for example the AppQuake applet from package earthquake I get the error shown below. The .class file is in the build directory of the package. It has run before. Other applets from other projects still do run. What am I doing wrong?

load: class earthquake.AppQuake.class not found.
java.lang.ClassNotFoundException: earthquake.AppQuake.class
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Arnold
  • 4,578
  • 6
  • 52
  • 91

1 Answers1

1

The red exclamation mark means that the IDE is notifying that there are build errors in your project: see documentation

On Stackoverflow you can find someone who had the same issue here and a possible solution here in case you changed the project structure and left some dead dependencies.

Your project is probably misconfigured, or missing some dependencies in the classpath.

Community
  • 1
  • 1
thoeni
  • 4,064
  • 2
  • 14
  • 14
  • Thanks, I had focused too much on the ClassNotFound. It appeared to be a build error indeed. I found out that the `.classpath` was corrupted, but that took some time to find out. +1 for the links that ultimately helped me. – Arnold Oct 16 '16 at 13:38