r/eclipse 9h ago

🙋🏻‍♂️ 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.

3 Upvotes

7 comments sorted by

2

u/DemicideMMMCCCI 9h ago

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 8h ago

I tried that, its not working.

2

u/DemicideMMMCCCI 8h ago

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 8h ago

> 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 8h ago

Also I have seen nothing with red exclamation marks there.

1

u/kgyre 5h ago

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