Home » 
        Kotlin
    
    
    Guide to Run Kotlin programming language's programs
    
    
    
	
    
        
            By IncludeHelp Last updated : December 04, 2024
        
    
    
    How to run Kotlin programs?
    To run Kotlin program, java must be installed on the system. Then We can use any java compiler to write Kotlin programs like Intellij IDEA, Eclipse, NetBeans. In this article I have use Intellij IDEA compiler.  You can download Intellij Idea from this link. The latest version can run Kotlin programs without any plugin or add-on.
    
    Steps to create and run Kotlin program
    Here is the step by step guide to create Kotlin project and run Kotlin program in the Intellij Compiler:
    1. Open Intellij Idea.
    
    2. File → New → Project
    3. Select Kotlin from side menu and then Kotlin(JVM)
    
    4. Name the project
    5. Locate the project location and the Project SDK(java JDK)
    
    6. Click Finish
    7. Right click on ‘src' under project and then select new → Kotlin File
    
    8. Name the program
    
    9. Write Kotlin program in the editor 
    
    10. To run one can either right click anywhere on editor and then select run or select run from run tab.
    
    OR
    
    11. We will get desired output.
    
    So this was a guide to run a Kotlin program. If anyone face any problem, please write in comment box.
    
    
  
    Advertisement
    
    
    
  
  
    Advertisement