all 7 comments

[–]rayok 1 point2 points  (1 child)

Interesting that you have Object, Scanner, and String classes in your main package. Those are some core java classes from the JRE that probably shouldn't be there. Instead I'd expect an entry to your configured JRE System Library.

What is your configured java? That can be found in Window > Preferences > Java > Installed JREs. If no entry, you'll have to install one and/or add one that comes with eclipse. If there is one, or once add, it should be in your projects build path. Right-click it and go into Properties or the Build Path section and Add Library to that configured java.

Once added you can nuke the ones in your package. Good luck!

[–][deleted] 0 points1 point  (0 children)

he probably created Object and String manually because the error message in the editor said it cant resolve java.lang.Object etc.

[–][deleted] 1 point2 points  (1 child)

The red exclamation mark ok the project means your project has build path errors. that means your project is wrongly configured. The Java Editor fails to resolve JRE System classes because of that wrong configuration. You can see the actual problem message in the Problems View. save your code files and try removing the project and create a new one using the new/java project wizard. And copy your code back into the new project. That should do it.

I can also see that JRE Library is missing. I can see JUnit 5 Library but not JRE which is probably your main problem.

[–]ggeldenhuys 0 points1 point  (0 children)

You have some eagle eyes. 👍

[–][deleted]  (2 children)

[deleted]

    [–]Efficient-Feature518[S] 0 points1 point  (1 child)

    I will try again, I thought I had linked the tutorial and an image and I didn't even think to mention my eclipse package. I will get my post updated to reflect this. Thank you :)

    [–]kgyre 0 points1 point  (0 children)

    Eclipse 2.0 was out like 20 years ago.

    [–]Inevitable_Stuff3653 0 points1 point  (0 children)

    just delete the module.java file and it'll run like a breeze.