title: Changing code snippet in a .class file
body: <p>I have a jar file that contains a class file that I need to change a host name in.  Simple change if I can get the code decompiled correctly.</p>
  
  <p>When I tried extracting and decompiling with jd gui then recompiling with javac, I get compilation errors because I believe the decompiler didn't read the code correctly.</p>
  
  <p>Next I tried to open the .class file in notepad++ and just change the host name amidst all the symbols and other things, then rejar, and that didn't work either.</p>
  
  <p>I know this is similar to a lot of questions on here, but I can't seem to find my answer.</p>