Windows10 IntelliJ IDEAをインストールしてkotlinを実行する
- 作成日 2020.05.08
- 更新日 2020.07.18
- IntelliJ IDEA kotlin
- IntelliJ IDEA, kotlin, windows10, インストール
![Windows10 IntelliJ IDEAをインストールしてkotlinを実行する](https://mebee.info/wp-content/uploads/2020/05/image-22-890x500.png)
kotlinの開発元である「ジェットブレインズ社」が提供している「IntelliJ IDEA」をwindows環境にインストールして、実行するまでの手順を記述してます。
環境
- OS windows10 pro 64bit
- kotlin 1.3.72
※windows10にkotlinをインストールする手順はこちら
IntelliJ IDEAダウンロード
こちらのサイトからダウンロード可能です。
ダウンロードをクリックします。
![](https://mebee.info/wp-content/uploads/2020/05/image-22-1024x493.png)
無償のコミュニティの方の「 ダウンロード」をクリックしてexe形式でダウンロードします。
![](https://mebee.info/wp-content/uploads/2020/05/image-23-1024x541.png)
ideaIC-2020.1.1.exeがダウンロードされます。
![](https://mebee.info/wp-content/uploads/2020/05/image-24.png)
IntelliJ IDEAインストール
ダウンロードした「ideaIC-2020.1.1.exe」をダブルクリックしてインストールを開始します。
「Next」をクリックします。
![](https://mebee.info/wp-content/uploads/2020/05/image-11.png)
ショートカットキーの作成とファイルの関連付けです。
※ここでは、64bitのショートカットの作成とktファイルに関連付けだけ行ってます。
![](https://mebee.info/wp-content/uploads/2020/05/image-13.png)
「Install」をクリックするとインストールが開始されます。
![](https://mebee.info/wp-content/uploads/2020/05/image-25.png)
インストールが開始されます。
![](https://mebee.info/wp-content/uploads/2020/05/image-14.png)
「Finish」をクリックすればインストールは完了です。
![](https://mebee.info/wp-content/uploads/2020/05/image-15.png)
kotlin実行
ディスクトップ上のショートカットをクリックします。
![](https://mebee.info/wp-content/uploads/2020/05/image-26.png)
起動時にUIの選択を求められます。
![](https://mebee.info/wp-content/uploads/2020/05/image-16.png)
プラグインの確認です。とりあえず、「Next」をクリックします
![](https://mebee.info/wp-content/uploads/2020/05/image-17.png)
追加プラグインの確認です。ここでは特に何も追加せず「Start using IntelliJ IDEA」をクリックします。
![](https://mebee.info/wp-content/uploads/2020/05/image-18.png)
「Create New Project」をクリックして、新規プロジェクトを作成します。
![](https://mebee.info/wp-content/uploads/2020/05/image-19.png)
Kotlinにチェックをします。
![](https://mebee.info/wp-content/uploads/2020/05/image-20-1024x672.png)
任意の名前でプロジェクトを作成します。
![](https://mebee.info/wp-content/uploads/2020/05/IntelliJ-1024x672.png)
作成したプロジェクト上の「src」を右クリックし「Kotlin File/Class」を選択します。
![](https://mebee.info/wp-content/uploads/2020/05/image-21.png)
ここでは、testと入力してtest.ktファイルを作成します。
![](https://mebee.info/wp-content/uploads/2020/05/IntelliJ-1.png)
test.ktに下記のコードを記述して、hello worldを表示します。
fun main(args: Array<String>) {
println("Hello world")
}
画面上部にある「Run」をクリックして、 test.kt を実行します。
![](https://mebee.info/wp-content/uploads/2020/05/image-28.png)
「Hello world」が表示されることが確認できます。
![](https://mebee.info/wp-content/uploads/2020/05/image-29.png)
-
前の記事
Laravel7 Fakerの使い方 ダミーデータを作成するまでの手順 2020.05.08
-
次の記事
Laravel7 DBクラスを利用して、DBと接続してテーブルの値を表示する 2020.05.09
コメントを書く