This message was deleted.
# questions
s
This message was deleted.
1
t
I've never seen that error before, but hopefully somebody else here will be able to help you out! What JDK version are you using and what version of Gradle are you using on your Windows machine? Also, make sure to try running
gradlew clean
after deleting the
.gradle
directory in your project.
a
I'm using the java 17.0.8.7 (AMZN corretto) in Linux and 17.0.8.1(Microsoft openjdk) in Windows. Thee gradlew clean was successful but the problem persist
Update: I installed the same version of jdk in Windows and the problem persist
👍 1
s
Check that there are no characters that the compiler is seeing. Given the early phase that the compiler is erroring out I would check your file encoding to be UTF8 and that the line encodings aren't causing errors.
a
The problem was the path of the file, I moved the folder to the root and it works
s
Ah yes. Windows has a max path length of ~256 characters.
g
"On Windows, if you see the error "> A problem occurred starting process 'command 'C:\path\to\java.exe''", run it again with the
--stacktrace
flag. If the root error is "Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long", add
grails { pathingJar = true }
to your
build.gradle
file. This is a known limitation with Windows."
This is one of the many reasons I don't work with Windows.