Link to home
Start Free TrialLog in
Avatar of dkamdar
dkamdar

asked on

Cannot Run a Java application on Eclipse

Hi,

If any of you have used eclipse, please let me know what this error means.
I am running an open source code - dtdparser
I tried to run it in eclipse and it compiles fine but at runtime gives the following error in a dialog box:
The active editor doe snot contain a Main type

When I checked the file ClassGenerator.java

It has the main method.

Any thoughts?

Oh and By the way after I build it, its not showing me the class file.
Does it store it in a separate bin directory or something?

Please lemme know
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Avatar of RMaruszewski
RMaruszewski

> Oh and By the way after I build it, its not showing me the class file.
> Does it store it in a separate bin directory or something?

It depends how you configure your project. You can set the "bin" directory, it's the common practice.
But by default the compiled files (.class) are created in the same directories where source files (.java) are located.
ASKER CERTIFIED SOLUTION
Avatar of fifalover
fifalover

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial