Code Monkey home page Code Monkey logo

Comments (6)

martinlippert avatar martinlippert commented on June 4, 2024
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.

BoykoAlex avatar BoykoAlex commented on June 4, 2024

Even after launching each app separately you still cannot select them all and launch?

from sts4.

BoykoAlex avatar BoykoAlex commented on June 4, 2024

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.

BoykoAlex avatar BoykoAlex commented on June 4, 2024

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.

navy1978 avatar navy1978 commented on June 4, 2024
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.

navy1978 avatar navy1978 commented on June 4, 2024

It has happened again and indeed deleting /.metadata/.plugins/org.eclipse.jdt.core triggered the indexing.

from sts4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.