title: Error occurred during initialization of VM due to java.nio.charset.IllegalCharsetNameException
body: <p>I am using gradle-2.5 version.
  I am getting this error when I am trying to build an android project.</p>
  
  <pre><code>[abc_Android_App] $ /cip/opt/gradle-2.5/bin/gradle
  Error occurred during initialization of VM
  java.nio.charset.IllegalCharsetNameException: 
  at java.nio.charset.Charset.checkName(Charset.java:303)
  at java.nio.charset.Charset.lookup2(Charset.java:484)
  at java.nio.charset.Charset.lookup(Charset.java:464)
  at java.nio.charset.Charset.defaultCharset(Charset.java:609)
  at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:56)
  at java.io.OutputStreamWriter.&lt;init&gt;(OutputStreamWriter.java:111)
  at java.io.PrintStream.&lt;init&gt;(PrintStream.java:104)
  at java.io.PrintStream.&lt;init&gt;(PrintStream.java:151)
  at java.lang.System.newPrintStream(System.java:1148)
  at java.lang.System.initializeSystemClass(System.java:1192)
  
  Build step 'Invoke Gradle script' changed build result to FAILURE
  Build step 'Invoke Gradle script' marked build as failure
  An attempt to send an e-mail to empty list of recipients, ignored.
  Finished: FAILURE
  </code></pre>
  
  <p>I have searched in Google for similar kind of error and found this type of error:</p>
  
  <pre><code>Error occurred during initialization of VM
  java.nio.charset.IllegalCharsetNameException: UTF-8 -Xmx4G -Xms4G 
  </code></pre>
  
  <p>which had a solution for it. <br/><br/>But in my case, the error is not showing UTF-8 -Xmx4G -Xms4G , and due to which I am unable to guess where the issue lies.</p>
  
  <p>Please help me to get around this error.</p>
  
  <p>P.s ( There is no space issue on slave)<br/><br/>
  Thanks in advance.</p>