Jun 202018

ADM

How to execute shell command from Java

  • June 20 2018
  • ADM

How to execute a shell command from Java using Runtime.getRuntime().exec() method.

Jun 22018

ADM

How to generate UUID / GUID in Java

  • June 2 2018
  • ADM

How to generate UUID / GUID in Java using java.util.UUID class, UUID.randomUUID() method.

Jun 12018

ADM

How to change the hostname in Ubuntu

  • June 1 2018
  • ADM

How to change hostname in Ubuntu. There are three options: temporary until the first restart and permanent by changing the hostname file or using command hostnamectl

Apr 42018

ADM

How to change Tomcat default port

  • April 4 2018
  • ADM

How to change Tomcat default port 8080 to any other port. Three steps: locate server.xml file, edit and restart the Tomcat service.

Apr 32018

ADM

Maven local repository location

  • April 3 2018
  • ADM

Maven local repository default location for Linux and Windows and how to change the location.

Apr 22018

ADM

How to read XML file in Java using SAX Parser

  • April 2 2018
  • ADM

How to read XML file in Java using SAX Parser.

Apr 12018

ADM

Tomcat default administrator password

  • April 1 2018
  • ADM

How to activate the default tomcat manager application administrator password. This setting is for Tomcat 7 and newer.