Compiling a .kt file in geany always give me the error ("Process failed" the system cannot find the file specified ) But it works on my command line The compile command is :kotlinc "%f" -include-runtime -d "%e.jar" And the execute command is :"java -jar %e.jar"(The execute command works But the compile command doesn't work)) ![Screenshot (168)](https://user-images.githubusercontent.com/79951868/136642352-567889d9-63e2-4...) ) ![Screenshot (169)](https://user-images.githubusercontent.com/79951868/136642477-598a7ded-eaa6-4...)
Is the path where `kotlinc` is installed in your %PATH% environment variable?
It seems Geany cannot find `kotlinc.exe`. If there is no absolute path configured in the Build settings, Geany uses the %PATH% environment variable to look for installed programs.
How and where is Kotlin installed? What does your %PATH% environment variable look like?
Yes it is my environment variable
![Screenshot (171)](https://user-images.githubusercontent.com/79951868/136660737-070a115e-99ed-4...) ![Screenshot (172)](https://user-images.githubusercontent.com/79951868/136660749-48d857b7-d40b-4...)
Hmm, I guess you already restart Geany after editing the environment variables?
Not sure what else could be wrong. The full path to "kotlinc.exe" didn't work either, maybe also with quotes?
Closed #2922.
@ESCANES could you solve the problem?
I'm having the exact problem. I've been using Geany for a LONG time (~10yrs) and I am easily able to get it configured to compile/build/execute ALL of my other languages (c, c++ (w/ many compilers), java, pascal, javascript (via node), several basics, python, ruby, Go (pauses for like 5-15sec oftentimes, but still works), Fortran.... I THINK that's it..
Anyway, I've obviously got the process down pat, but the kotlinc command-line compiler just refuses to work in Geany. Works just fine in any terminal/command prompt (cmd, powershell, cmder, etc.). Path is set. Geany just seems to ignore it. No sound or anything, just "Process failed (The system cannot find the file specified)"
Trying to learn a little kotlin without having to use IntelliJ along with it is like pulling teeth....
github-comments@lists.geany.org