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)
- TestJars support HOT 3
- STS 4.21.1 x86_64 starts failure at MACOS 12.7, but 4.21.0 works, openjdk8 HOT 4
- adjustments to version validations HOT 3
- "Add Starters..." Inlay in POM file in Eclipse Client HOT 1
- Refactor Gradle plugin for `StsToolingModel`
- prevent installing Spring Tools into non-compatible Eclipse platform installs
- sun.security.ssl.SSLContextImpl$DefaultSSLContext HOT 7
- change the actions to refresh live information to show application right away HOT 1
- allow easier configuration of live data connection for remote processes
- provide puristic upgrade support for Spring Boot without including polish recipes
- provide preference to open code lens URLs in simple browser HOT 4
- Problems with lombok annotations HOT 4
- Lombok 1.18.30 does not work with 4.22.0 HOT 2
- broken lombol decorator toString with callsuper true param HOT 1
- inlay hint in pom.xml file to upgrade to latest Spring Boot version
- Set the vmArg HeapDumpOnOutOfMemoryError to be optional HOT 13
- Endgame
- I really need spring config editor. Help me HOT 1
- verify that document requests work without didOpen/didClose events coming in
- java.lang.ArithmeticException: / by zero HOT 1
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.