omer12433
omer12433

Reputation: 309

Eclipse “Error: Could not find or load main class” after renaming package

Eclipse seems to not find the main class after I renamed the package

I tried to clean the project and every other solution found in stack overflow but they didn't work

I can manually run it using the cmd but eclipse can't run the program

Upvotes: 0

Views: 1886

Answers (1)

Razib
Razib

Reputation: 11173

I think some corrupted setting is already been in metadata directory in your workspace. Notice metadata is a hidden directory, if your are using ubuntu/linux then the directory name would be .metadata. Try to remove the .metadata directory.

Or you may remove the run configuration from Run>Run Configuration

Upvotes: 1

Related Questions