3.2. Kotlin IntelliJ IDEA environment building

发布时间 : 2025-10-25 13:34:26 UTC      

Page Views: 10 views

Free community version of IntelliJ IDEA download address: https://www.jetbrains.com/idea/download/index.html

After downloading and installing, we can use this tool to create projects. The creation process requires selecting SDK and using Kotlin with JDK 1.6+.

Check the Kotlin (Java) check box in the drop-down menu on the right.

Image0

Next, let’s choose a project name: HelloWorld

Image1

After the project is created, the file structure is as follows, which is very similar to Java.

Image2

Next, let’s click src folder, creating a Kotlin file, which can be named at will, here we create app.kt

Image3

Next, we are in app.kt to write some code in the file. IntelliJ IDEA provides us with a template to do this quickly, just type main then press Tab ,that’s it.

Image4

Now let’s add a line of code to print out "Hello, World!" , let’s do it.

Image5

Next, we can click on the upper left corner of the editor. kotlin icon and select Run ‘AppKt’ to run the code:

Image6

After running successfully, you can run it in the window Run , you can see the results in.

Image7

So the first Kotlin code is running.

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。