Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main class outside project not found #1437

Open
kmartin88 opened this issue Dec 12, 2024 · 0 comments
Open

Main class outside project not found #1437

kmartin88 opened this issue Dec 12, 2024 · 0 comments

Comments

@kmartin88
Copy link

Describe the bug
I am using STS4 for Eclipse and I have a project in my workspace which uses a custom framework on top of Spring Boot. The main class is not contained in the project directly but is located inside this custom framework.
The project shows up in the boot dashboard, even if I check "Hide local non-runnable apps" in the filter.
However, the default run configuration created by the Boot Dashboard does not contain a main class which leads to "Error: Could not find or load main class".
When I edit the run configuration (click on Open Config in the context menu) and then click on the "Search..." button next to "Main type" the main class doesn't show up.
It works perfectly fine if I just put in the fully qualified name of the main class myself. It just doesn't seem to be able to find the class by itself.

Is this a bug or intended behaviour (meaning does it only look inside the project sources for a main class instead of the whole class path)?
In the case of a bug I can try to build a little sample to reproduce it as I can't show you the original because it's a customer project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant