title: java.lang.ClassFormatError: Invalid constant pool index 63
body: <p>I tried to extract a .class File from the .jar, and it worked, but then I changed something an now i got this error:</p>
  
  <pre><code>java.lang.ClassFormatError: Invalid constant pool index 63
  </code></pre>
  
  <p>Here's my code:</p>
  
  <pre><code>String path = new File(getClass().getProtectionDomain().getCodeSource().getLocation().getFile()).getAbsolutePath();
  if (path.endsWith("."))
      path = path.substring(0, path.length() - 1);
  String decodedPath = URLDecoder.decode(path, "UTF-8");
  
  File file = new File(decodedPath + (decodedPath.endsWith("\\") ? "Classfile.class" : "\\Classfile.class"));
  
  InputStreamReader read = new InputStreamReader(FileSync.class.getResourceAsStream("/Classfile.class"));
  FileWriter write = new FileWriter(file);
  
  int c;
  while ((i = read.read()) &gt; -1) {
      write.write(i);
  }
  write.flush();
  read.close();
  write.close();
  
  ProcessBuilder builder = new ProcessBuilder(System.getProperty("java.home") + "\\bin\\java.exe", "Classfile", decodedPath + (decodedPath.endsWith("\\") ? "Program.jar" : "\\Program.jar"));
  builder.directory(file.getParentFile());
  Process process = builder.start();
  </code></pre>
  
  <p>Can anyone help?</p>