MadPat
MadPat

Reputation: 23

Deploying Jar file no main class found eclipse

Hi I have seen some threads about the problem. But none of them solved my problem.

When using the Export option from exlipse selecting jar I configure it like this:

Jar Export Settings

Jar Export Settings 2

so far so good, the Main class is detected. But then when trying to run the jar I get the error:

"Java Virtual Machine Launcher" "Could not find the main class: Program will exit."

Can anyone suggest what I am doing wrong?

Upvotes: 1

Views: 569

Answers (1)

Niamat H.
Niamat H.

Reputation: 134

In Jar export, make sure to check the src folder under the selected projet and check the last 3 options export and uncheck the first one. Hope it will work for you.

Upvotes: 3

Related Questions