Читать книгу Programming Kotlin Applications - Бретт Мак-Лахлин, Brett McLaughlin - Страница 31

Verify Your Command-Line Installation

Оглавление

However you've chosen to install Kotlin, when you're finished, you should be able to validate your installation with this command:

brett $ kotlinc

WARNING At this point, you may get prompted to install a Java runtime. This should fire up your system to handle this, and you can accept the prompts without a lot of worry. Find the JDK or JRE for your system, download it, and run it. Then come back and try out kotlinc again.

If you have your system appropriately configured with Java, you should get back something like this:

brett $ kotlinc Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. Welcome to Kotlin version 1.3.61 (JRE 13.0.2+8) Type :help for help, :quit for quit >>>

This is the Kotlin REPL (Read-Eval-Print Loop), a tool for quickly evaluating Kotlin statements. We'll look at this in more detail later, but for now, exit the REPL by typing :quit .

You can also verify your version of Kotlin with the following command:

brett $ kotlin -version Kotlin version 1.3.61-release-180 (JRE 13.0.2+8)

At this point, you're ready to roll!

Programming Kotlin Applications

Подняться наверх