Tags » JDK

Simplified solution for Installing RubyMine with JDK in linux (12.04 14.04 16.04)

Hello all,

This is short and simply solution to install Rubymine in linux system.

There are basically two things we need to do to install it, 78 more words

Kotlin JDBC - Create a Table

We can use JDKs JDBC API to create a table in a database. We create tables by using the Statements::executeUpdate method and pass the proper SQL command along to the database. 1,094 more words

JDK Download - Java Development Kit 9 Downloads

The JDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java platform.

To download virus free JDK, please visit original… 17 more words


Kotlin JDBC - Use ResultSet to Delete Rows

The ResultSet interface found in JDK’s JDBC API may be used to delete rows in a database individually. Here is a Kotlin example that deletes rows from a Burgers.Menu table in the database that match the supplied primary keys. 1,210 more words

Update JDK Terbaru

Untuk update JDK terbaru, silakan download di sini:


Lanjutkan dengan ekstraksi dan proses-proses lain:

ar -xvf ~/Downloads/jdk-9.0.1_linux-x64_bin.tar.gz
sudo mkdir -p /usr/lib/jvm/jdk-9.0.1
sudo mv jdk-9.0.1/* /usr/lib/jvm/jdk-9.0.1/
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-9.0.1/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-9.0.1/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk-9.0.1/bin/javaws" 1
… 45 more words

How to Ensure Your Code Works With Older JDKs

jOOQ is a very backwards compatible product. This doesn’t only mean that we keep our own API backwards compatible as well as possible, but we also still support Java 6 in our… 640 more words


Kotlin Compare Paths

The Paths interface overrides equals() and compareTo(), allowing us to compare paths in the file system.

import java.nio.file.Paths

fun main(args : Array<String>){
    //Get two references to the home directory
    val home = Paths.get(System.getProperty("user.home"))
    val otherHome = Paths.get(System.getProperty("user.home"))
    //Get the current working directory
    val cwd = Paths.get(System.getProperty("user.dir"))

    println("$home == $otherHome is " + (home == otherHome))
    println("$home == $cwd is " + (home == cwd))
    println("$home < $cwd is " + (home < cwd))
    println("$cwd < $home is " + (cwd < home))
    println("$home >= $otherHome is " + (home >= otherHome))
… 145 more words