Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Compiling kotlin #2922

Closed
ESCANES opened this issue Oct 9, 2021 · 6 comments
Closed

Error Compiling kotlin #2922

ESCANES opened this issue Oct 9, 2021 · 6 comments
Labels

Comments

@ESCANES
Copy link

ESCANES commented Oct 9, 2021

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))
I have been trying for days to get it to work i even used the absolute path of the file but it still doesn't work
I am Using Windows 10
Screenshot (170)

Screenshot (169)

@elextr elextr added the windows label Oct 9, 2021
@eht16
Copy link
Member

eht16 commented Oct 9, 2021

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?

@ESCANES
Copy link
Author

ESCANES commented Oct 9, 2021

Yes it is my environment variable

Screenshot (174)
Screenshot (175)

@eht16
Copy link
Member

eht16 commented Oct 9, 2021

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?

@ESCANES ESCANES closed this as completed Oct 16, 2021
@eht16
Copy link
Member

eht16 commented Oct 16, 2021

@ESCANES could you solve the problem?

@Dragaan
Copy link

Dragaan commented Mar 9, 2022

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)"

@Dragaan
Copy link

Dragaan commented Mar 9, 2022

Trying to learn a little kotlin without having to use IntelliJ along with it is like pulling teeth....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants