Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I build a windows executable from kotlin source code?

Tags:

kotlin

native

As far as I know, kotlin native allows you to compile kotlin source code to platform specific nativ code, that runs without any virtual machine. But I don't seem to find any example on how to build a windows executable (.exe) from kotlin source code.
Why is that?
Can you do it or not?

like image 256
ILikeTrains Avatar asked Jan 29 '26 17:01

ILikeTrains


1 Answers

https://kotlinlang.org/docs/native-get-started.html shows you how to set up a basic Kotlin Native project, and compile it. The only note is that kotlin native will generate a .kexe, which is just a renamed .exe.

like image 166
LeoDog896 Avatar answered Feb 01 '26 08:02

LeoDog896



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!