java.lang.IllegalArgumentException: Compilation unit is not of SOURCE kind: "/C:/dev/gsonpath/gsonpath-compiler/build/resources/test/adapter/auto/field_types/primitives/valid/TestValidPrimitives.kt"


Solutions on the web14

Solution icon of stackoverflow
Compilation unit is not of SOURCE kind: "/C:/dev/gsonpath/gsonpath-compiler/build/resources/test/adapter/auto/field_types/primitives/valid/TestValidPrimitives.kt"

Solution icon of github
All compilation units must be of SOURCE kind

Solution icon of oraclecommunity
via Oracle Community by 950805, 1 year ago
Not a valid class name: Test.1

Solution icon of stackoverflow
Not a valid class name: Files\Java\jdk1.8.0_102\jre\lib\charsets.jar;C:\Program

Solution icon of stackoverflow
via Stack Overflow by Bahar Azartoos
, 1 year ago
Not a valid class name: &

Solution icon of stackoverflow
Not a valid class name: mypackage.MyClass.

Solution icon of stackoverflow
Not a valid class name: JNI.Main.class

Solution icon of web
Not a valid class name: mypackage.MyClass.

Solution icon of stackoverflow
Not a valid class name: –d

Solution icon of web
via pielot.org by Unknown author, 1 year ago
Not a valid class name: bin/classes

Stack trace

java.lang.IllegalArgumentException: Compilation unit is not of SOURCE kind: "/C:/dev/gsonpath/gsonpath-compiler/build/resources/test/adapter/auto/field_types/primitives/valid/TestValidPrimitives.kt"
	at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:137)
	at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:107)
	at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:64)
	at com.google.testing.compile.Compilation.compile(Compilation.java:69)
	at com.google.testing.compile.JavaSourcesSubject$CompilationClause.compilesWithoutError(JavaSourcesSubject.java:281)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 more bugmates