java.lang.IllegalStateException: No files nor directories matching 'D:/.../target/test-classes'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Christian, 10 months ago
No files nor directories matching 'D:/.../target/test-classes'
via Stack Overflow by Linus E
, 6 months ago
No files nor directories matching 'path_to_my_project\lib\filename.mar'
via Stack Overflow by YafimK
, 1 year ago
No files nor directories matching 'C:/Users/XXXX/.m2/repository/org/jenkins-ci/main/jenkins-war/1.642.4/jenkins-war-1.642.4.war'
via Stack Overflow by CaptainNemo
, 3 months ago
No files nor directories matching '/home/travis/build/My_user_name/My_project_name/app/build/intermediates/classes/'
via Stack Overflow by kurzweil4
, 1 year ago
No files nor directories matching '/home/dir/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty.toolchain.setuid/libsetuid-linux/1.0.2/fdd9c0360aea4b4333b4e0b82ff9506a5a73fa5b/libsetuid-linux-1.0.2.so'
via Google Groups by Daniel G., 5 months ago
No files nor directories matching '...\MyEAR\SomeWarInTheManifestMf.war'
java.lang.IllegalStateException: No files nor directories matching 'D:/.../target/test-classes'
at org.sonar.java.AbstractJavaClasspath.getFilesFromProperty(AbstractJavaClasspath.java:90)
at org.sonar.java.JavaClasspath.init(JavaClasspath.java:49)
at org.sonar.java.AbstractJavaClasspath.getElements(AbstractJavaClasspath.java:271)
at org.sonar.java.SonarComponents.getJavaClasspath(SonarComponents.java:122)
at org.sonar.java.JavaSquid.(JavaSquid.java:78)
at org.sonar.plugins.java.JavaSquidSensor.execute(JavaSquidSensor.java:86)
at org.sonarsource.sonarlint.core.analyzer.sensor.SensorWrapper.analyse(SensorWrapper.java:52)
at org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:73)
at org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor.execute(SensorsExecutor.java:63)
at org.sonarsource.sonarlint.core.analyzer.sensor.PhaseExecutor.execute(PhaseExecutor.java:44)
at org.sonarsource.sonarlint.core.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:143)
at org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:125)
at org.sonarsource.sonarlint.core.container.ComponentContainer.execute(ComponentContainer.java:110)
at org.sonarsource.sonarlint.core.container.storage.StorageAnalyzer.analyze(StorageAnalyzer.java:72)
at org.sonarsource.sonarlint.core.container.storage.StorageContainer.analyze(StorageContainer.java:125)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.analyze(ConnectedSonarLintEngineImpl.java:158)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.analyze(ConnectedSonarLintEngineImpl.java:145)
at org.sonarlint.eclipse.core.internal.server.Server.runAnalysis(Server.java:264)
at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:407)
at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob$AnalysisThread.run(AnalyzeProjectJob.java:124)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.