-1

I am working on a program on eclipse and I am getting an error that says, : Exception in thread "main" java.lang.Error: Unresolved compilation problem: at main.main(main.java:19) I am new to programming, it would mean a lot if you tell me what the error is about and how i can fix it. Thank you!

  • You are trying to run code that has errors in it - you need to fix the errors that Eclipse is telling you about. – greg-449 Jun 23 '21 at 10:04
  • Welcome to the stacks. Prepare the smallest example of code that exhibits the error. By preparing such a code example, questioners sometimes find the solution. In any case it makes the task easier to answer. – Alan Jun 23 '21 at 10:05
  • Welcome, add your code so we can help you better – Roophie Jun 23 '21 at 10:06

1 Answers1

-1

Try running the "Clean..." command in the Project menu. It may not help, but it is a good step to at least eliminate that possible source of spurious error.

Alan
  • 716
  • 5
  • 15
  • how would that resolve a compilation problem? – Stultuske Jun 23 '21 at 12:05
  • I've had compilation errors, for example from incorrect usage of egit, that disappeared when running Clean... – Alan Jun 23 '21 at 12:17
  • @Stultuske the link provided at the top upon closing the question points to a question where the person was able to resolve their problem by Cleaning. – Alan Jun 23 '21 at 22:02
  • keep in mind we haven't seen any of the OP's code, so we don't know exactly what caused the issue. The above might be a fix. It might also not be. – Stultuske Jun 24 '21 at 07:44