code: private void createClasspathJar(File outputFile, String classpath) throws IOException {
          FileOutputStream out = new FileOutputStream(outputFile);
          try {
              Manifest manifest = new Manifest();
              Attributes attrs = manifest.getMainAttributes();
              attrs.put(Attributes.Name.MANIFEST_VERSION, "1.0");
              attrs.put(Attributes.Name.CLASS_PATH, classpath);
              new JarOutputStream(out, manifest).close();
          } finally {
              out.close();
          }
      }
docs: Writes a JAR with a MANIFEST.MF containing the Class-Path string.
  
  @param outputFile the output file to create
  @param classpath the Class-Path string
  @throws IOException if an error occurs creating the file