final Class javaType = Class.forName(type.getName()); final FieldInfo fieldInfo = emitter.getFieldInfo(javaType); final Field[] jdkFields = fieldInfo.getJdkStaticFields(); final int max = jdkFields.length;  for (int k = 0; k < max; k++) { final Field jdkField = jdkFields[k]; if (jdkField != null) { final VmField f = fieldInfo.getJNodeStaticField(k); if (!f.isTransient()) { try { copyStaticField(type, f, jdkField, statics, os, emitter); } catch (IllegalAccessException ex) { throw new BuildException(ex); } } }
final Class javaType = Class.forName(type.getName()); try { final FieldInfo fieldInfo = emitter.getFieldInfo(javaType); final Field[] jdkFields = fieldInfo.getJdkStaticFields(); final int max = jdkFields.length;  for (int k = 0; k < max; k++) { final Field jdkField = jdkFields[k]; if (jdkField != null) { final VmField f = fieldInfo.getJNodeStaticField(k); if (!f.isTransient()) { try { copyStaticField(type, f, jdkField, statics, os, emitter); } catch (IllegalAccessException ex) { throw new BuildException(ex); } } } } } catch (JNodeClassNotFoundException ex) { log("JNode class not found" + ex.getMessage());
    protected void copyStaticFields(VmSystemClassLoader cl, VmStatics statics, NativeStream os, ObjectEmitter emitter)            throws ClassNotFoundException {        for (Iterator i = cl.getLoadedClasses().iterator(); i.hasNext();) {            final VmType type = (VmType) i.next();            final String name = type.getName();            final int cnt = type.getNoDeclaredFields();            if ((cnt > 0) && !name.startsWith("java.")){                final Class javaType = Class.forName(type.getName());                final FieldInfo fieldInfo = emitter.getFieldInfo(javaType);                final Field[] jdkFields = fieldInfo.getJdkStaticFields();                final int max = jdkFields.length;                                for (int k = 0; k < max; k++) {                    final Field jdkField = jdkFields[k];                                   if (jdkField != null) {                        final VmField f = fieldInfo.getJNodeStaticField(k);                        if (!f.isTransient()) {                            try {                                copyStaticField(type, f, jdkField, statics, os, emitter);                            } catch (IllegalAccessException ex) {                                throw new BuildException(ex);                            }                        }                    }                }            }        }    }