How to execute shell command from Java

  • 20 June 2018
  • ADM

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


How to read XML file in Java using SAX Parser

  • 04 April 2018
  • ADM

How to read XML file in Java using SAX Parser.


How to marshal a JAXB object into org.w3c.dom.Document

  • 23 March 2018
  • ADM

How to marshal a JAXB object into org.w3c.dom.Document using Transformer class and formatted console print.


How to generate JAXB classes with xjc

  • 05 March 2018
  • ADM

How to generate JAXB classes with xjc. Command line: xjc -d src -p com.admfactory.client schema.xsd


How to convert a roman number in decimal in Java

  • 05 March 2018
  • ADM

How to convert a roman number in decimal in Java. The symbols used are I, V, X, C, D and M.


HTTP URLConnection with proxy in Java

  • 08 February 2018
  • ADM

How to create an HTTP URLConnection with proxy in Java. Simple example including proxy authentication.