title: How to get remote debugging work for Java on Solaris
body: <p>I am trying to get remote debugging working with Java on Solaris OS. Following is what I have tried-</p>
  <p>I have a Java class called TestP which has the main method.</p>
  <p>When I try
  java -classpath . TestP</p>
  <p>the program works fine. But when I try adding the debug parameters to the JVM-</p>
  <p>java -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n -classpath . TestP</p>
  <p>It fails giving this error-</p>
  <p>UTF ERROR [&quot;../../../src/solaris/npt/utf_md.c&quot;:49]: Failed to complete iconv_open() setup</p>
  <p>Can anyone please help me on figuring out why this error is coming up?? The above works fine on my Linux box.</p>
  <p>Java version on Solaris:
  Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
  Java HotSpot(TM) Client VM (build 14.1-b02, mixed mode)</p>
  <p>Java version on Linux:
  java version &quot;1.6.0_0&quot;
  OpenJDK Runtime Environment (IcedTea6 1.5) (fedora-20.b16.fc10-i386)
  OpenJDK Server VM (build 14.0-b15, mixed mode)</p>