Unable to Run Kotlin Application in Eclipse

后端 未结 7 1392
轻奢々
轻奢々 2020-12-18 17:50

In order to create my first, simple Kotlin project in Eclipse, I followed the steps in Getting Started with Eclipse Luna tutorial from Kotlin official website, i.e.:

7条回答
  •  心在旅途
    2020-12-18 18:37

    1. Go to Windows->show view->navigator
    2. Edit the .project file, changing just the following section to compile Kotlin file into same location as the Java files.
    
            
                
                2
                org.jetbrains.kotlin.core.filesystem:/FindUniqueStrings/bin
            
    
    

    Keep in mind:

    1. I have commented out the name tag. Otherwise, Kotlin complier creates src folder kotlin_bin and puts your kotlin file in this folder and the kotlin runtime will not find it.
    2. The name of my java project is entitled FindUniqueStrings. Yours will be different.
    3. Double check that your java class files are complied into your project's bin folder by locating these files in the Navigator view.

提交回复
热议问题