Comments (6)
Error: Could not find or load main class xxx.yyyy.MyApplication Caused by: java.lang.ClassNotFoundException: xxx.yyyy.MyApplication
But I am assuming that the main class name that appears on the console is the right one, correct?
from sts4.
Even after launching each app separately you still cannot select them all and launch?
from sts4.
Overall it seems like the JDT index is corrupted... Can you try deleting <workspace folder>/.metadata/.plugins/org.eclipse.jdt.core
folder? Shut down Eclipse, delete the folder, start the Eclipse. I hope it should re-index java types.
STS plugins don't write into the index but rather ask the index to find types with main method... I wouldn't expect this to corrupt the index...
(I have tried launching a few apps at once - seemed okay)
from sts4.
Also, it'd be great if you could attach here the projects you're having in the workspace which reproduce the problem for you. It'd likely help us reproducing the issue on our side.
from sts4.
Error: Could not find or load main class xxx.yyyy.MyApplication Caused by: java.lang.ClassNotFoundException: xxx.yyyy.MyApplication
But I am assuming that the main class name that appears on the console is the right one, correct?
Yes the class is correct
Even after launching each app separately you still cannot select them all and launch?
Not sure I have memories that this could not fix the issue, even if today it did it
Overall it seems like the JDT index is corrupted... Can you try deleting
<workspace folder>/.metadata/.plugins/org.eclipse.jdt.core
folder? Shut down Eclipse, delete the folder, start the Eclipse. I hope it should re-index java types. STS plugins don't write into the index but rather ask the index to find types with main method... I wouldn't expect this to corrupt the index... (I have tried launching a few apps at once - seemed okay)
I will do that as sson as it will happen again and I will keep you updated. This happened a lot of times for us (to me and one of my colleagues)
from sts4.
It has happened again and indeed deleting /.metadata/.plugins/org.eclipse.jdt.core triggered the indexing.
from sts4.
Related Issues (20)
- upgrade of Eclipse based installs broken HOT 2
- NPE while updating Spring Boot version HOT 5
- "Code Completion" works fine in `application.properties` file, but does not work for `application.yml` file. HOT 7
- `Map<K,V>` with escaped key not works properly in `application.yml` HOT 1
- Gradle option when importing guides or creating new initializr projects is missing HOT 2
- upgrade dialog to select recipe appears twice HOT 2
- Dialog for open-rewrite recipes shows "Loading..." and nothing happens HOT 5
- Ideas for better open-rewrite recipes dialog HOT 1
- Eclipse Run Configuration - Use Temporary Jar becomes secretly unchecked HOT 2
- Variable assignment/reference syntax highlighting lost between v1.53.0 and v1.54.0 HOT 4
- Debug stack reference lost/reset when another thread is executed in versions 4.22.0 and 4.22.1 HOT 2
- Support multiple `SemanticTokensProvider`s from LSP standpoint
- spring tool suite 3 -JDK21 HOT 1
- "Code Completion" not work in application.yml file HOT 2
- vscode @DependsOn navigation not linked HOT 8
- verify upgrade support to Spring Boot 3.3.0 HOT 1
- Support `@ConfigurationProperties` on bean method for `application.properties` references HOT 1
- Occasional NPE when opening / importing / creating Maven projects HOT 3
- upgrade with preview in Eclipse throws exception HOT 2
- STS 4.22.1 - EclEmma Code Coverage not showing. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sts4.