• 5 min,  Kotlin

    5 min Kotlin and AdopOpenJDK and make jar (Extended import java.util.*)

    Files after download Download AdoptOpenJDK AdoptOpenJDK – Open source, prebuilt OpenJDK binaries OpenJDK11U-jdk_x64_windows_hotspot_11.0.13_8.msi On install:Add to PATH, Set JAVA_HOME on local HD. C:\Users\jekl>java -versionopenjdk version “11.0.13” 2021-10-19OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode Download Kotlin zip Release Kotlin 1.6.10 · JetBrains/kotlin (github.com) kotlin-compiler-1.6.10.zip unzip it somewhere C:\giti2021\Kotlins\kotlin-compiler-1.6.10\kotlinc Add KOTLIN_HOME and Path Click on the Edit environment variables for your account shortcut. Enter “KOTLIN_HOME” as variable name. Enter the [KOTLIN_INSTALL_DIR] as variable value. Next, we need to configure the PATH environment variable so we can run Kotlin from a command prompt. Select the PATH variable. Click on Edit, New and add a new path:%KOTLIN_HOME%\bin…

    Comments Off on 5 min Kotlin and AdopOpenJDK and make jar (Extended import java.util.*)
  • Kotlin

    Kotlin and AdoptOpenJDK with compile for jar. (Extended with Eclipse and AdoptOpenJDK)

    AdoptOpenJDK – Open source, prebuilt OpenJDK binaries OpenJDK11U-jdk_x64_windows_hotspot_11.0.13_8.msi Add to PATH, Set JAVA_HOME on local HD. Release Kotlin 1.6.10 · JetBrains/kotlin (github.com) Download Kotlin Download and unzip it C:\giti2021\Kotlins\kotlin-compiler-1.6.10\kotlinc Click on the Edit environment variables for your account shortcut. Enter “KOTLIN_HOME” as variable name. Enter the [KOTLIN_INSTALL_DIR] as variable value. Next, we need to configure the PATH environment variable so we can run Kotlin from a command prompt. Select the PATH variable. Click on Edit…. Test it VSC Install Kotlin Language Code Runner Edit the main method Main.kt->run code Result: Compile outside of VSC Kotlin command-line compiler | Kotlin (kotlinlang.org) Change in code, run the same steps But if you do changes Code runner just…

    Comments Off on Kotlin and AdoptOpenJDK with compile for jar. (Extended with Eclipse and AdoptOpenJDK)
  • Kotlin

    OpenJDK and Oracle JDK

    What now with Kotlin and JVM: “Oracle has announced that, effective January 2019, Java SE 8 public updates will no longer be available for “Business, Commercial or Production use” without a commercial license.” https://www.oracle.com/technetwork/java/java-se-support-roadmap.html From jetbrains: “We are happy to announce the first Technology Preview of Kotlin/Native that compiles Kotlin directly to machine code. The Kotlin/Native compiler produces standalone executables that can run without any virtual machine.” Kotlin/Native uses the LLVM compiler infrastructure to generate machine code https://blog.jetbrains.com/kotlin/2017/04/kotlinnative-tech-preview-kotlin-without-a-vm/ OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition (Java SE). OpenJDK FAQ: Oracle’s plans for OpenJDKWhat are Oracle’s plans for the OpenJDK Community?…

    Comments Off on OpenJDK and Oracle JDK
  • Kotlin

    A loganalyzer with Kotlin-native basic

    https://kotlinlang.org/docs/reference/ If you have a basic Kotlin/Native Application good, if not look at the tutorial here: Basic Kotlin/Native Application Getting started Basics Classes and objects Functions and lambdas Etc

    Comments Off on A loganalyzer with Kotlin-native basic
  • Kotlin

    Basic Kotlin/Native Application

    https://kotlinlang.org/docs/tutorials/native/basic-kotlin-native-app.html Obtaining the compiler Kotlin/Native is available for macOS, Linux and Windows. Depending on the operating system we’re working on, we’ll need to download the correct compiler. While cross-platform compilation is possible (i.e. using one platform to compile for another), in this first tutorial we’re going to compile for the same operating system we’re running on. In our case this will be Windows 10. We can obtain the latest version of the compiler from the: https://github.com/JetBrains/kotlin-native/releases I downloaded version: kotlin-native-windows-1.3.11 and added to path (environmental var) : C:\Program Files\kotlin-native-windows-1.3.11\bin Once downloaded, we can uncompress it in any folder, e.g. ~/kotlin-native. For convenience it’s useful to add the bin folder to…

    Comments Off on Basic Kotlin/Native Application
  • Kotlin

    Compile Kotlin and run jar from command line

    Compile Kotlin and run jar Kotlin: Kotlin is a statically typed programming language that runs on the Java virtual machine and also can be compiled to JavaScript source code or use the LLVM compiler infrastructure. It is sponsored and developed by JetBrains. While the syntax is not compatible with Java, the JVM implementation of the Kotlin standard library is designed to interoperate with Java code and relies on Java code from the existing Java Class Library, such as the collections framework.[2] Kotlin uses aggressive type inference to determine the types of values and expressions for which type has been left unstated. This reduces language verbosity relative to Java, which demands…

    Comments Off on Compile Kotlin and run jar from command line