Reputation: 614
When I am using runAs inside eclipse I am always getting this error.
Error: Could not find or load main class com.xx.api.Application
How to fix this ?
Upvotes: 0
Views: 472
Reputation: 614
Thanks for looking into this. I am using Spring Tool Suite. I am trying to use gradle eclipse plugin. This is where i was getting errors.
When i switched to import project as gradle project It started working. However I have generated DTO using the jhipster-uml.
This generate the mapper classes in build folder by default. Now when i run the application, It fails to find mapper classes.
I am able to make is work by generating the mapper classes into my source folder for now.
Thanks for help.
Upvotes: 0
Reputation: 3688
It depends on your version of Eclipse, on what you have installed, on how you configured everything... What you can do:
Upvotes: 1