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


Solutions on the web8

Solution icon of googlegroups
No files nor directories matching 'D:/.../target/test-classes'

Solution icon of stackoverflow
No files nor directories matching 'path_to_my_project\lib\filename.mar'

Solution icon of googlegroups
via Google Groups by Unknown author, 1 year ago
No files nor directories matching 'target/classes'

Solution icon of googlegroups
via Google Groups by Daniel G., 3 months ago
No files nor directories matching '...\MyEAR\SomeWarInTheManifestMf.war'

Solution icon of stackoverflow
No files nor directories matching '/home/travis/build/My_user_name/My_project_name/app/build/intermediates/classes/'

Solution icon of googlegroups
No files nor directories matching '........<some-project-output-path-here>......../resources/test'

Solution icon of stackoverflow
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'

Solution icon of stackoverflow
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'

Stack trace

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.<init>(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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.