Shubham Rai
Shubham Rai

Reputation: 9

How can i make the whole project to run in IntelliJ IDEA?

I am using intelliJ IDEA for a project in which i declare 4 different classes in separate files namely as A,B,C,D and uses inheritance.

Class D contains main method,On running D it runs properly. But when i try to run the whole project it shows the error as shown in image.

enter image description here

What can i do to make this project working?

Upvotes: 0

Views: 384

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 401877

It looks like you are using incorrect Run/Debug configuration. Create a new one using the Application type.

It's also not clear what you mean by "try to run the whole project". You run Java application using an entry point, a class with the main method. So, what's the difference between running the D class main method and running the whole project?

Upvotes: 3

Related Questions