Hi all,

I've just posted this in the Java forum and was refered to the Eclipse forum 'cause it might be more a Eclipse problem than a Java problem. I'll just post the original post:

Iím working on a project where we use a framework called JCAF which is a jar file that we import into eclipse and then add it to the build path but a problem arises when I try to run the application (in Eclipse) however it is only with me the problem occur and not my teammember.
It should say that we use CVS so everything is exactly identical on both computers / eclipse. Furthermore are we both using Windows 7 Pro 64-bit operating system.

The error is a bit complex to explain, so please ask if I need to clarify something.

In a packet called ďassignment.mainĒ weíve got a java file called ďDisplayListener.javaĒ where our main method is located.
When I try to run the main, I get following error:
Java Code:
Could not find the main class: assignment.main.DisplayListener. 
Program will exit
The problem is, i think, that it should find the main class, because the Abstract class we use is located in the JCAF jar file (with path:
Java Code:
) and which is imported. At the very top of my DisplayListener.java, Iíve imported
Java Code:
which it imports without any problems.

In my Eclipse Console window I get this error:

Java Code:
java.lang.NoClassDefFoundError: dk/pervasive/jcaf/EntityListener
Iím not sure if it is the problem or it is located another place but I have a strong assumption that it is the JCAF framework and the jar file because the code otherwise is identical to my teammembers which, as said, works fine.

Does anyone knows what or how to solve the problem? Iíve tried to find the error with no luck.

- Mestika