urls[0] = deviceInputFile.toURI().toURL(); ClassLoader classLoader = new ExtensionsClassLoader(urls, urls.getClass().getClassLoader()); device = DeviceImpl.create(context, classLoader, descriptorLocation, J2SEDevice.class);
String entryName = (String) it.next(); try { devices.put(entryName, DeviceImpl.create(emulatorContext, classLoader, entryName, J2SEDevice.class)); } catch (IOException e) {
Device device = DeviceImpl.create( emulatorContext, classLoader,
devices.put( entry.getName(), DeviceImpl.create(emulatorContext, classLoader, entry.getName())); } catch (IOException ex) { Message.error("Error parsing device profile, " + Message.getCauseMessage(ex), ex);
if (deviceDescriptorLocation != null) { try { setDevice(DeviceImpl.create(emulatorContext, classLoader, deviceDescriptorLocation, defaultDeviceClass)); DeviceDisplayImpl deviceDisplay = (DeviceDisplayImpl) DeviceFactory.getDevice().getDeviceDisplay(); if (overrideDeviceWidth != -1 && overrideDeviceHeight != -1) { classLoader = createExtensionsClassLoader(urls); setDevice(DeviceImpl.create(emulatorContext, classLoader, defaultDevice.getDescriptorLocation(), defaultDeviceClass)); defaultDeviceSelected = true; } else {
Device device = DeviceImpl.create(emulatorContext, classLoader, entry.getDescriptorLocation(), J2SEDevice.class); this.deviceEntry = entry;
} catch (ClassNotFoundException ex) { try { device = DeviceImpl.create(emulatorContext, Main.class.getClassLoader(), deviceParameter, J2SEDevice.class); DeviceFactory.setDevice(device);