Just Set the Classpath Up
| ←Older revision | Revision as of 09:00, 29 November 2025 | ||
| Line 31: | Line 31: | ||
=== Just Set the Classpath Up === | === Just Set the Classpath Up === | ||
| - | On the other hand, there are problems | + | On the other hand, there are problems with this approach. Configuring the [[classpath]] of your IDE is no longer just about locating a [[JAR]] file in a [[GUI]] of a project configuration dialog (as usual in the other IDEs). If there is a problem, one has to dive into the '''pom.xml''' (or [[Ant]]'s properties) and change that. The actual [[classpath]] and other project settings are influenced by various properties computed and derived from one another in relatively complex and tool ([[Ant]] or [[Maven]]) specific ways. Just by changing a seemingly unrelated property one can change the whole project [[classpath]] significantly. As soon as the IDE notices that, it may decide to reparse the whole sources. That may mean to throw away the caches to adjust to such change and burn a lot of [[CPU]] to generate new ones. Often resulting in the whole source tree turning ''red'' due to missing symbols. |
This is not [[clueless]] - one needs to know what is happening and how to fix the problems. Recently we at least realized that in [[Maven]] case, if one [[JAR]] is missing from the [[classpath]], then it doesn't make sense to reparse at all - and the IDE waits for the classpath to become 100% complete. | This is not [[clueless]] - one needs to know what is happening and how to fix the problems. Recently we at least realized that in [[Maven]] case, if one [[JAR]] is missing from the [[classpath]], then it doesn't make sense to reparse at all - and the IDE waits for the classpath to become 100% complete. | ||