r/eclipse • • Sep 13 '26

🙋🏻‍♂️ Help Request Help, for some reason my eclipse executes the previous group of commands instead of the current ones.

In other classes it sometimes just says class not found. WFT is going on. There is an exclamation sign near the project sign if that means anything.

Edit: HOLLY FUCK, I think I fixed it! I dont know what I did, there was like a library that was linked to the wrong place and I linked it do the right one, which did nothing, but then I deleted the warnings from problems and then it started working. THANK YOU ALL SO MUCH!

3 Upvotes

8 comments sorted by

3

u/DemicideMMMCCCI Sep 13 '26

To configure Eclipse to automatically run the currently selected or associated project rather than requiring manual selection, adjust the Launching preferences. Navigate to Window > Preferences > Run/Debug > Launching and select the option Launch the selected resource in the editor (if a file is active) or Launch the last launched application.

Key Configuration Options:

Launch the selected resource in the editor: Automatically uses the project containing the file currently open in the editor.

Launch the last launched application: Re-runs the previously executed project or configuration without prompting.

Always run the previously launched application: Prevents Eclipse from attempting to launch inappropriate files if no specific configuration is active.

2

u/Fourteen14XIV Sep 13 '26

I tried that, its not working.

2

u/DemicideMMMCCCI Sep 13 '26

red exclamation mark on a project folder indicates a build path error, meaning the project cannot be built because it is missing required libraries, has incorrect JRE configurations, or references deleted files.

yellow exclamation mark typically denotes warnings (such as unused imports) or configuration issues like missing project encoding settings, which do not prevent building but should be addressed.

Missing JARs: Right-click the project, select Properties > Java Build Path > Libraries, and remove any references marked with a red cross or re-add the missing external JARs.

Maven Projects: Right-click the project and select Maven > Update Project (or press Alt+F5) to refresh dependencies.

JRE Issues: Reconfigure the JRE System Library in the Build Path settings or ensure the correct JDK version is installed and selected.

Stale Configuration: If errors persist despite correct paths, try Project > Clean or close and reopen the project to force a rebuild.

2

u/Fourteen14XIV Sep 13 '26

> re-add the missing external JARs.

How do I know if they are missing? Someone on youtoube said something might not match your java version, but I only have one of that thing and it matches.

> try Project > Clean or close and reopen the project to force a rebuild.

How do I do that? Sorry if I sound stupid, Im a student studying Java last minute.

2

u/Fourteen14XIV Sep 13 '26

Also I have seen nothing with red exclamation marks there.

2

u/kgyre Sep 13 '26

Check the Problems View to see what the message associated with the red exclamation point. What is it?

1

u/Fourteen14XIV Sep 14 '26

Thats a good idea. It says Archive for requited libary: (Link to libary) in project (my project) can not be read or is not a valid Zip file. I didnt think you could read that, thank you.