Skip to content

Eclipse Run Configuration - Use Temporary Jar becomes secretly unchecked #1248

Closed

Description

@toddfroyland

In Eclipse Run Configurations, spring Boot App, modifying anything on any tab causes the "Use temporary JAR to specify classpath" checkbox on the Classpath tab to become unchecked, although it still shows as checked. Unchecking the box does not cause the "Apply" button to activate. Checking the box again allows you to click on "Apply". This ritual, uncheck, re-check, click Apply, must be done every time a configuration change is made.

To Reproduce

  1. Create a Spring Boot App run configuration that has the "Use temporary JAR to specify classpath" box on the Classpath tab checked.
  2. Save the configuration.
  3. Edit the configuration.
  4. Add, delete, or change something on the Environment tab. Click "Apply" there.
  5. Switch to the Classpath tab. Notice that the "Apply" button is grayed out.
  6. Uncheck the "Use temporary JAR to specify classpath" checkbox. Notice that the "Apply" button is still grayed out.
  7. Check the "Use temporary JAR to specify classpath" checkbox. Notice that the "Apply" button is now available to select

This has been an issue for several years. Since I just upgraded to the latest Eclipse (2024-03) and Spring Tool Suite 4 (4.22.0.202403071427), I thought I should finally report it.

Exported launch configuration attached.

DashboardBoot.launch.txt

Activity

  1. added this to the 4.23.0.RELEASE milestone on May 7, 2024
  2. martinlippert commented on May 7, 2024

    @martinlippert
    Member

    @toddfroyland Thanks for reporting this and the details steps how to reproduce this. I can clearly reproduce this on my end as well... :-) So let's get that fixed for the next release.

  3. BoykoAlex commented on Jun 4, 2024

    @BoykoAlex
    Contributor

    Turns out that for Java version greater than 8 it should be Dependencies tab instead of Classpath. JDT launching sets the temp JAR classpath to false for "modular" projects (Java 9 and above) on each apply automatically hence we observe the behaviour on the Classpath tab that shouldn't be there. Instead for projects on Java 9 and above the Dependencies tab should be showing that doesn't have the checkbox for temp JAR classpath.
    Fixed with 7ec8bc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsetype: bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions