Kotlin IDE – How to install and configure

Want to learn Kotlin language?

Use the Intellij Idea Community edition.

Download from https://www.jetbrains.com/idea/download/#section=windows

The IDE is open-source and has support for Java, Kotlin, Groovy and Scala.

 

Steps to download and configure the IDE

  1. Download from the above link.
  2. Double-click to install. If there is an old version of the IDE, choose to uninstall before installing the new version.
  3. Accept the terms and conditions and click on next.
  4. Choose the UI theme.
  5. You can choose to installed some plugins proposed during installation if you want.
  6. Click on Start Using IntelliJ IDEA.
  7. The IDE will start. You will get the welcome screen.
  8. Click on Create new Project.
  9. Project SDK is empty. Click on new and browse to the location of the Java SDK.
  10. Under the section Additional Libraries and Frameworks, select Kotlin(JVM). Click on Next.
  11. Specify a project name such as KotlinDemo. Click on Finish.
Advertisements

Install Oracle Java SDK 8 on Ubuntu using the Java repository

Below are the typical commands to install the Java SDK using the Java repository.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

However, I ran into problems. Here are the steps I took to install the official Java SDK on my Ubuntu virtual machine.

  • Run the command “sudo add-apt-repository ppa:webupd8team/java
pravin@pravin-VirtualBox:~/Desktop$ sudo add-apt-repository ppa:webupd8team/java
 Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.

Important -> Why Oracle Java 7 And 6 Installers No Longer Work: http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html

Ubuntu 16.10 Yakkety Yak is no longer supported by Canonical (and thus, Launchpad and this PPA). The PPA supports Ubuntu 17.10, 17.04, 16.04, 14.04 and 12.04.

More info (and Ubuntu installation instructions):
- for Oracle Java 7: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
- for Oracle Java 8: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

Debian installation instructions:
- Oracle Java 7: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
- Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html

Oracle Java 9 (for both Ubuntu and Debian): http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html

Oracle JDK 9 is now considered stable. There are currently only 64bit builds (no other builds are available for download: http://www.oracle.com/technetwork/java/javase/downloads/index.html )
 More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press [ENTER] to continue or Ctrl-c to cancel adding it.

gpg: keybox '/tmp/tmptg_cm08h/pubring.gpg' created
gpg: keyserver receive failed: End of file
Failed to add key.

There are errors at the end of the output. The keybox was created but the keyserver operation failed.

  • Run the command “sudo apt-get update“.
pravin@pravin-VirtualBox:~/Desktop$ sudo apt-get update
Hit:1 http://au.archive.ubuntu.com/ubuntu artful InRelease
Hit:2 http://au.archive.ubuntu.com/ubuntu artful-updates InRelease 
Hit:3 http://au.archive.ubuntu.com/ubuntu artful-backports InRelease 
Hit:4 http://security.ubuntu.com/ubuntu artful-security InRelease 
Hit:6 https://download.sublimetext.com apt/stable/ InRelease 
Get:5 http://ppa.launchpad.net/webupd8team/java/ubuntu artful InRelease [15.4 kB]
Err:5 http://ppa.launchpad.net/webupd8team/java/ubuntu artful InRelease
 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu artful InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu artful InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

The process of updating the package list failed for the Java stating that the public key is not available.

Here is the fix for the above.

  • Go to the OpenPGP Public Key Server website http://keyserver.ubuntu.com.
  • Enter the key you got from the previous command and click on Search!.
    • Here the key is C2518248EEA14886. You have to prefix it with 0x.

Screenshot at 2018-02-18 19-04-35

  • Click on the link for pub.

Screenshot at 2018-02-18 19-04-31

You will get the public key.

Screenshot at 2018-02-18 19-04-18

  • Copy  the content starting from —–BEGIN PGP PUBLIC KEY BLOCK—–) till the end to a file, say key1.
  • Run the following command.

sudo apt-key add key1

pravin@pravin-VirtualBox:~/Documents$ sudo apt-key add key1
OK

The OK response means that public key was successfully added.

  • Run the command “sudo apt-get update” again.
pravin@pravin-VirtualBox:~/Documents$ sudo apt-get update
Hit:1 http://au.archive.ubuntu.com/ubuntu artful InRelease
Hit:2 http://au.archive.ubuntu.com/ubuntu artful-updates InRelease 
Hit:3 http://au.archive.ubuntu.com/ubuntu artful-backports InRelease 
Hit:4 http://security.ubuntu.com/ubuntu artful-security InRelease 
Hit:6 https://download.sublimetext.com apt/stable/ InRelease 
Get:5 http://ppa.launchpad.net/webupd8team/java/ubuntu artful InRelease [15.4 kB] 
Get:7 http://ppa.launchpad.net/webupd8team/java/ubuntu artful/main i386 Packages [1,556 B]
Get:8 http://ppa.launchpad.net/webupd8team/java/ubuntu artful/main amd64 Packages [2,024 B]
Get:9 http://ppa.launchpad.net/webupd8team/java/ubuntu artful/main Translation-en [1,036 B]
Fetched 20.0 kB in 3s (5,063 B/s)
Reading package lists... Done

The command works correctly now and the package lists are updated successfully.

  • To install the Java 8 SDK, run the command “sudo apt-get install oracle-java8-installer“.
pravin@pravin-VirtualBox:~/Documents$ sudo apt-get install oracle-java8-installer
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following additional packages will be installed:
 gsfonts-x11 java-common oracle-java8-set-default
Suggested packages:
 binfmt-support visualvm ttf-baekmuk | ttf-unfonts | ttf-unfonts-core ttf-kochi-gothic | ttf-sazanami-gothic ttf-kochi-mincho
 | ttf-sazanami-mincho ttf-arphic-uming
The following NEW packages will be installed:
 gsfonts-x11 java-common oracle-java8-installer oracle-java8-set-default
0 to upgrade, 4 to newly install, 0 to remove and 89 not to upgrade.
Need to get 54.5 kB of archives.
After this operation, 272 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://au.archive.ubuntu.com/ubuntu artful/main amd64 java-common all 0.59ubuntu1 [7,232 B]
Get:2 http://au.archive.ubuntu.com/ubuntu artful/universe amd64 gsfonts-x11 all 0.24 [7,314 B]
Get:3 http://ppa.launchpad.net/webupd8team/java/ubuntu artful/main amd64 oracle-java8-installer all 8u161-1~webupd8~0 [33.1 kB]
Get:4 http://ppa.launchpad.net/webupd8team/java/ubuntu artful/main amd64 oracle-java8-set-default all 8u161-1~webupd8~0 [6,830 B]
Fetched 54.5 kB in 2s (21.8 kB/s) 
Preconfiguring packages ...
Selecting previously unselected package java-common.
(Reading database ... 184067 files and directories currently installed.)
Preparing to unpack .../java-common_0.59ubuntu1_all.deb ...
Unpacking java-common (0.59ubuntu1) ...
Selecting previously unselected package oracle-java8-installer.
Preparing to unpack .../oracle-java8-installer_8u161-1~webupd8~0_all.deb ...
Unpacking oracle-java8-installer (8u161-1~webupd8~0) ...
Setting up java-common (0.59ubuntu1) ...
Setting up oracle-java8-installer (8u161-1~webupd8~0) ...
No /var/cache/oracle-jdk8-installer/wgetrc file found.
Creating /var/cache/oracle-jdk8-installer/wgetrc and
using default oracle-java8-installer wgetrc settings for it.
Downloading Oracle Java 8...
--2018-02-18 19:11:52-- http://download.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.202.172.165
Connecting to download.oracle.com (download.oracle.com)|23.202.172.165|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.tar.gz [following]
--2018-02-18 19:11:53-- https://edelivery.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.24.248.161
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.24.248.161|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.tar.gz?AuthParam=1518941634_8167070cc2e8764726c0928af6ade737 [following]
--2018-02-18 19:11:54-- http://download.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.tar.gz?AuthParam=1518941634_8167070cc2e8764726c0928af6ade737
Connecting to download.oracle.com (download.oracle.com)|23.202.172.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 189756259 (181M) [application/x-gzip]
Saving to: 'jdk-8u161-linux-x64.tar.gz’

0K ........ ........ ........ ........ ........ ........ 1% 1.09M 2m43s
 3072K ........ ........ ........ ........ ........ ........ 3% 1.33M 2m26s
 6144K ........ ........ ........ ........ ........ ........ 4% 1.35M 2m18s
 9216K ........ ........ ........ ........ ........ ........ 6% 695K 2m44s
 12288K ........ ........ ........ ........ ........ ........ 8% 1.11M 2m39s
 15360K ........ ........ ........ ........ ........ ........ 9% 1.17M 2m33s
 18432K ........ ........ ........ ........ ........ ........ 11% 1.39M 2m25s
 21504K ........ ........ ........ ........ ........ ........ 13% 557K 2m41s
 24576K ........ ........ ........ ........ ........ ........ 14% 1022K 2m37s
 27648K ........ ........ ........ ........ ........ ........ 16% 1.05M 2m33s
 30720K ........ ........ ........ ........ ........ ........ 18% 1.07M 2m29s
 33792K ........ ........ ........ ........ ........ ........ 19% 482K 2m39s
 36864K ........ ........ ........ ........ ........ ........ 21% 823K 2m38s
 39936K ........ ........ ........ ........ ........ ........ 23% 229K 3m8s
 43008K ........ ........ ........ ........ ........ ........ 24% 29.1M 2m52s
 46080K ........ ........ ........ ........ ........ ........ 26% 29.4M 2m38s
 49152K ........ ........ ........ ........ ........ ........ 28% 28.1M 2m25s
 52224K ........ ........ ........ ........ ........ ........ 29% 27.6M 2m14s
 55296K ........ ........ ........ ........ ........ ........ 31% 2.31M 2m7s
 58368K ........ ........ ........ ........ ........ ........ 33% 843K 2m5s
 61440K ........ ........ ........ ........ ........ ........ 34% 1.35M 2m1s
 64512K ........ ........ ........ ........ ........ ........ 36% 836K 1m59s
 67584K ........ ........ ........ ........ ........ ........ 38% 1.08M 1m55s
 70656K ........ ........ ........ ........ ........ ........ 39% 1.41M 1m50s
 73728K ........ ........ ........ ........ ........ ........ 41% 1.28M 1m46s
 76800K ........ ........ ........ ........ ........ ........ 43% 901K 1m44s
 79872K ........ ........ ........ ........ ........ ........ 44% 1.39M 1m40s
 82944K ........ ........ ........ ........ ........ ........ 46% 1.04M 97s
 86016K ........ ........ ........ ........ ........ ........ 48% 1.19M 93s
 89088K ........ ........ ........ ........ ........ ........ 49% 1.40M 89s
 92160K ........ ........ ........ ........ ........ ........ 51% 780K 87s
 95232K ........ ........ ........ ........ ........ ........ 53% 1.01M 84s
 98304K ........ ........ ........ ........ ........ ........ 54% 1.15M 81s
101376K ........ ........ ........ ........ ........ ........ 56% 902K 78s
104448K ........ ........ ........ ........ ........ ........ 58% 1.27M 75s
107520K ........ ........ ........ ........ ........ ........ 59% 1.14M 72s
110592K ........ ........ ........ ........ ........ ........ 61% 858K 69s
113664K ........ ........ ........ ........ ........ ........ 62% 1.11M 66s
116736K ........ ........ ........ ........ ........ ........ 64% 793K 64s
119808K ........ ........ ........ ........ ........ ........ 66% 1013K 61s
122880K ........ ........ ........ ........ ........ ........ 67% 626K 59s
125952K ........ ........ ........ ........ ........ ........ 69% 931K 56s
129024K ........ ........ ........ ........ ........ ........ 71% 735K 53s
132096K ........ ........ ........ ........ ........ ........ 72% 1.03M 50s
135168K ........ ........ ........ ........ ........ ........ 74% 1.66M 47s
138240K ........ ........ ........ ........ ........ ........ 76% 816K 44s
141312K ........ ........ ........ ........ ........ ........ 77% 884K 41s
144384K ........ ........ ........ ........ ........ ........ 79% 1.24M 38s
147456K ........ ........ ........ ........ ........ ........ 81% 1.15M 34s
150528K ........ ........ ........ ........ ........ ........ 82% 1.07M 31s
153600K ........ ........ ........ ........ ........ ........ 84% 1.41M 28s
156672K ........ ........ ........ ........ ........ ........ 86% 936K 25s
159744K ........ ........ ........ ........ ........ ........ 87% 1.44M 22s
162816K ........ ........ ........ ........ ........ ........ 89% 1.48M 19s
165888K ........ ........ ........ ........ ........ ........ 91% 1.17M 16s
168960K ........ ........ ........ ........ ........ ........ 92% 1.19M 13s
172032K ........ ........ ........ ........ ........ ........ 94% 1.45M 10s
175104K ........ ........ ........ ........ ........ ........ 96% 1.24M 7s
178176K ........ ........ ........ ........ ........ ........ 97% 1.31M 4s
181248K ........ ........ ........ ........ ........ ........ 99% 1.21M 1s
184320K ........ ....... 100% 88.0K=3m7s

2018-02-18 19:15:01 (992 KB/s) - 'jdk-8u161-linux-x64.tar.gz’ saved [189756259/189756259]

Download done.
Removing outdated cached downloads...
update-alternatives: error: no alternatives for java
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/ControlPanel to provide /usr/bin/ControlPanel (ControlPanel) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/javaws to provide /usr/bin/javaws (javaws) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jcontrol to provide /usr/bin/jcontrol (jcontrol) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/extcheck to provide /usr/bin/extcheck (extcheck) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/idlj to provide /usr/bin/idlj (idlj) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jar to provide /usr/bin/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javac to provide /usr/bin/javac (javac) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javafxpackager to provide /usr/bin/javafxpackager (javafxpackager) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javah to provide /usr/bin/javah (javah) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javap to provide /usr/bin/javap (javap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javapackager to provide /usr/bin/javapackager (javapackager) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jhat to provide /usr/bin/jhat (jhat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmc to provide /usr/bin/jmc (jmc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jps to provide /usr/bin/jps (jps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jsadebugd to provide /usr/bin/jsadebugd (jsadebugd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jvisualvm to provide /usr/bin/jvisualvm (jvisualvm) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/native2ascii to provide /usr/bin/native2ascii (native2ascii) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in auto mode
Oracle JDK 8 installed

#####Important########
To set Oracle JDK8 as default, install the "oracle-java8-set-default" package.
E.g.: sudo apt install oracle-java8-set-default
On Ubuntu systems, oracle-java8-set-default is most probably installed
automatically with this package.
######################

Selecting previously unselected package oracle-java8-set-default.
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
(Reading database ... 184103 files and directories currently installed.)
Preparing to unpack .../oracle-java8-set-default_8u161-1~webupd8~0_all.deb ...
Unpacking oracle-java8-set-default (8u161-1~webupd8~0) ...
Selecting previously unselected package gsfonts-x11.
Preparing to unpack .../gsfonts-x11_0.24_all.deb ...
Unpacking gsfonts-x11 (0.24) ...
Setting up gsfonts-x11 (0.24) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Setting up oracle-java8-set-default (8u161-1~webupd8~0) ...
Processing triggers for bamfdaemon (0.5.3+17.10.20170810-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Processing triggers for fontconfig (2.11.94-0ubuntu2) ...
pravin@pravin-VirtualBox:~/Documents$

The oracle Java 8 SDK is now installed correctly.

Check the installation of Java

pravin@pravin-VirtualBox:~/Documents$ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed

pravin@pravin-VirtualBox:~/Documents$ javac -version
javac 1.8.0_161

Aptana Studio requires chromium browser

You might get the following error in Aptana Studio is the chromium browser is not installed in Ubuntu.

Error loading browser
We were unable to load the Chromium browser. Please check the documentation for details on possible workarounds/fixes.

 

Screenshot at 2018-02-18 20-39-28

 

Here’s how to fix this issue without install the chromium browser.

  • Run this command below to install the WebKit rendering engine.

sudo apt-get install libwebkitgtk-1.0-0

pravin@pravin-VirtualBox:~/Documents$ sudo apt-get install libwebkitgtk-1.0-0
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following additional packages will be installed:
 libjavascriptcoregtk-1.0-0
The following NEW packages will be installed:
 libjavascriptcoregtk-1.0-0 libwebkitgtk-1.0-0
0 to upgrade, 2 to newly install, 0 to remove and 89 not to upgrade.
Need to get 9,766 kB of archives.
After this operation, 42.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://au.archive.ubuntu.com/ubuntu artful/universe amd64 libjavascriptcoregtk-1.0-0 amd64 2.4.11-3 [1,831 kB]
Get:2 http://au.archive.ubuntu.com/ubuntu artful/universe amd64 libwebkitgtk-1.0-0 amd64 2.4.11-3 [7,934 kB]
Fetched 9,766 kB in 9s (1,077 kB/s) 
Selecting previously unselected package libjavascriptcoregtk-1.0-0:amd64.
(Reading database ... 184218 files and directories currently installed.)
Preparing to unpack .../libjavascriptcoregtk-1.0-0_2.4.11-3_amd64.deb ...
Unpacking libjavascriptcoregtk-1.0-0:amd64 (2.4.11-3) ...
Selecting previously unselected package libwebkitgtk-1.0-0:amd64.
Preparing to unpack .../libwebkitgtk-1.0-0_2.4.11-3_amd64.deb ...
Unpacking libwebkitgtk-1.0-0:amd64 (2.4.11-3) ...
Setting up libjavascriptcoregtk-1.0-0:amd64 (2.4.11-3) ...
Processing triggers for libc-bin (2.26-0ubuntu2) ...
Setting up libwebkitgtk-1.0-0:amd64 (2.4.11-3) ...
Processing triggers for libc-bin (2.26-0ubuntu2) ...