code: static void writeToClassFile(final String internalClassName,
                                   final byte[] classBytes)
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "writeToClassFile (" + internalClassName + ", " +
                           ((classBytes == null) ? "null"
                                           : (classBytes.length + " bytes")) + ")");
          try
          {
              AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
                  @Override
                  public Void run() throws Exception {
                      String fileName = getLogLocation() + JIT_DEPLOY_DIR + internalClassName + ".class";
                      File file = new File(fileName);
                      File directory = file.getParentFile();
                      directory.mkdirs();
                      FileOutputStream classFile = new FileOutputStream(file);
                      classFile.write(classBytes);
                      classFile.flush();
                      classFile.close();
                      return null;
                  }
              });
  
          } catch (PrivilegedActionException paex) {
              FFDCFilter.processException(paex.getCause(), CLASS_NAME + ".writeToClassFile", "674");
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "writeToClassFile failed for class " + internalClassName +
                               " : " + paex.getCause().getMessage());
          } catch (Throwable ex)
          {
              FFDCFilter.processException(ex, CLASS_NAME + ".writeToClassFile", "463");
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "writeToClassFile failed for class " + internalClassName +
                               " : " + ex.getMessage());
          }
      }
docs: Writes the in memory bytecode bytearray for a generated class
  out to a .class file with the correct class name and in the
  correct package directory structure. <p>
  
  This method is useful for debug, to determine if classes
  are being generated properly, and may also be useful
  when it is required to make the classes available on a
  client without using the Remote ByteCode Server. <p>
  
  @param internalClassName fully qualified name of the class
  with '/' as the separator.
  @param classBytes bytearray of the class bytecodes.