https://kotlinlang.org logo
Title
l

luen

02/11/2022, 5:17 PM
I'm using the javacv library with compose for desktop, but when I run the project, I get an error: "CreateProcess error=206, The filename or extension is too long when running".
s

spierce7

02/11/2022, 5:22 PM
Are you able to run it in a normal java project?
f

Fureeish

02/11/2022, 5:23 PM
Are you using Windows? Is your absolute path of any file longer than 260 charactes?
l

luen

02/11/2022, 5:27 PM
Individually they work fine, but together they don't work.
f

Fureeish

02/11/2022, 5:29 PM
What do you mean by "together"? As in "merged"? In that case, let me ask once again - are the resulting paths (in their absolute form) longer than 260 characters?
l

luen

02/11/2022, 5:30 PM
No
I mean that if you use the libraries together, then this error comes out
e

ephemient

02/11/2022, 5:43 PM
are you running the project from the IDE or from Gradle? Gradle should have a built-in workaround for Windows path limitations, and IDEA has a configurable option: https://blog.jetbrains.com/idea/2017/10/intellij-idea-2017-3-eap-configurable-command-line-shortener-and-more/
l

luen

02/11/2022, 5:59 PM
IDE. The project does not start, this error just comes out in ide
e

ephemient

02/11/2022, 6:04 PM
then modify the run configuration, as shown in the link I posted
l

luen

02/11/2022, 6:44 PM
thank you very much. Everything is working