I am trying to separate the website name from the URL. For example - if the URL is www.google.com, the output should be \"google\". I tried the below code and everything wor
I've had the same problem, but after installing Java SE Development Kit 8u191 and selecting java-8-jdk with:
sudo update-alternatives --config java
it dissappered.