1176 sun.misc.VM.saveAndRemoveProperties(props);
1177
1178
1179 lineSeparator = props.getProperty("line.separator");
1180 sun.misc.Version.init();
1181
1182 FileInputStream fdIn = new FileInputStream(FileDescriptor.in);
1183 FileOutputStream fdOut = new FileOutputStream(FileDescriptor.out);
1184 FileOutputStream fdErr = new FileOutputStream(FileDescriptor.err);
1185 setIn0(new BufferedInputStream(fdIn));
1186 setOut0(newPrintStream(fdOut, props.getProperty("sun.stdout.encoding")));
1187 setErr0(newPrintStream(fdErr, props.getProperty("sun.stderr.encoding")));
1188
1189 // Load the zip library now in order to keep java.util.zip.ZipFile
1190 // from trying to use itself to load this library later.
1191 loadLibrary("zip");
1192
1193 // Setup Java signal handlers for HUP, TERM, and INT (where available).
1194 Terminator.setup();
1195
1196 // Initialize any miscellenous operating system settings that need to be
1197 // set for the class libraries. Currently this is no-op everywhere except
1198 // for Windows where the process-wide error mode is set before the java.io
1199 // classes are used.
1200 sun.misc.VM.initializeOSEnvironment();
1201
1202 // The main thread is not added to its thread group in the same
1203 // way as other threads; we must do it ourselves here.
1204 Thread current = Thread.currentThread();
1205 current.getThreadGroup().add(current);
1206
1207 // register shared secrets
1208 setJavaLangAccess();
1209
1210 // Subsystems that are invoked during initialization can invoke
1211 // sun.misc.VM.isBooted() in order to avoid doing things that should
1212 // wait until the application class loader has been set up.
1213 // IMPORTANT: Ensure that this remains the last initialization action!
1214 sun.misc.VM.booted();
1215 }
1216
|
1176 sun.misc.VM.saveAndRemoveProperties(props);
1177
1178
1179 lineSeparator = props.getProperty("line.separator");
1180 sun.misc.Version.init();
1181
1182 FileInputStream fdIn = new FileInputStream(FileDescriptor.in);
1183 FileOutputStream fdOut = new FileOutputStream(FileDescriptor.out);
1184 FileOutputStream fdErr = new FileOutputStream(FileDescriptor.err);
1185 setIn0(new BufferedInputStream(fdIn));
1186 setOut0(newPrintStream(fdOut, props.getProperty("sun.stdout.encoding")));
1187 setErr0(newPrintStream(fdErr, props.getProperty("sun.stderr.encoding")));
1188
1189 // Load the zip library now in order to keep java.util.zip.ZipFile
1190 // from trying to use itself to load this library later.
1191 loadLibrary("zip");
1192
1193 // Setup Java signal handlers for HUP, TERM, and INT (where available).
1194 Terminator.setup();
1195
1196 // Initialize any miscellaneous operating system settings that need to be
1197 // set for the class libraries. Currently this is no-op everywhere except
1198 // for Windows where the process-wide error mode is set before the java.io
1199 // classes are used.
1200 sun.misc.VM.initializeOSEnvironment();
1201
1202 // The main thread is not added to its thread group in the same
1203 // way as other threads; we must do it ourselves here.
1204 Thread current = Thread.currentThread();
1205 current.getThreadGroup().add(current);
1206
1207 // register shared secrets
1208 setJavaLangAccess();
1209
1210 // Subsystems that are invoked during initialization can invoke
1211 // sun.misc.VM.isBooted() in order to avoid doing things that should
1212 // wait until the application class loader has been set up.
1213 // IMPORTANT: Ensure that this remains the last initialization action!
1214 sun.misc.VM.booted();
1215 }
1216
|