launcher/src/wombat/launcher/Wombat.java
private static void launch() throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException {
		// Get all of the JARs that we might need.
		List<URL> urls = new ArrayList<URL>();
		urls.add(CurrentDir.toURI().toURL());
		for (Version v : Versions)
			urls.add(new File(CurrentDir, v.Filename).toURI().toURL());

		// Build a new class loader.
		ClassLoader currentThreadClassLoader = Thread.currentThread().getContextClassLoader();
		URLClassLoader cl = new URLClassLoader(urls.toArray(new URL[] {}), currentThreadClassLoader);
		Thread.currentThread().setContextClassLoader(cl);

		// Launch Wombat.
		Class<?> cls = Class.forName("wombat.Wombat", true, cl);
		try { cls.getField("AllowUpdate").setBoolean(null, true); } catch (Exception e) {}
		cls.newInstance();
	}
/**
	 * Launch Wombat.
	 * @throws MalformedURLException If any of the JAR URLs break (shouldn't happen).
	 * @throws ClassNotFoundException If the wombat.Wombat class doesn't exist.
	 * @throws IllegalAccessException If we don't security permissions enough for Wombat.
	 * @throws InstantiationException If the Wombat constructor doesn't exist.
	 */
Launch Wombat.
@throws MalformedURLException If any of the JAR URLs break (shouldn't happen).
@throws ClassNotFoundException If the wombat.Wombat class doesn't exist.
@throws IllegalAccessException If we don't security permissions enough for Wombat.
@throws InstantiationException If the Wombat constructor doesn't exist.
Launch Wombat . @throws MalformedURLException If any of the JAR URLs break ( shouldn ' t happen ) . @throws ClassNotFoundException If the wombat . Wombat class doesn ' t exist . @throws IllegalAccessException If we don ' t security permissions enough for Wombat . @throws InstantiationException If the Wombat constructor doesn ' t exist .
private static void launch() throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException {
		List<URL> urls = new ArrayList<URL>();
		urls.add(CurrentDir.toURI().toURL());
		for (Version v : Versions)
			urls.add(new File(CurrentDir, v.Filename).toURI().toURL());
		ClassLoader currentThreadClassLoader = Thread.currentThread().getContextClassLoader();
		URLClassLoader cl = new URLClassLoader(urls.toArray(new URL[] {}), currentThreadClassLoader);
		Thread.currentThread().setContextClassLoader(cl);
		Class<?> cls = Class.forName("wombat.Wombat", true, cl);
		try { cls.getField("AllowUpdate").setBoolean(null, true); } catch (Exception e) {}
		cls.newInstance();
	}
private static void launch ( ) throws MalformedURLException , ClassNotFoundException , InstantiationException , IllegalAccessException { List < URL > urls = new ArrayList < URL > ( ) ; urls . add ( CurrentDir . toURI ( ) . toURL ( ) ) ; for ( Version v : Versions ) urls . add ( new File ( CurrentDir , v . Filename ) . toURI ( ) . toURL ( ) ) ; ClassLoader currentThreadClassLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; URLClassLoader cl = new URLClassLoader ( urls . toArray ( new URL [ ] { } ) , currentThreadClassLoader ) ; Thread . currentThread ( ) . setContextClassLoader ( cl ) ; Class < ? > cls = Class . forName ( "wombat.Wombat" , true , cl ) ; try { cls . getField ( "AllowUpdate" ) . setBoolean ( null , true ) ; } catch ( Exception e ) { } cls . newInstance ( ) ; }
Launch Wombat.
Launch Wombat .
// Get all of the JARs that we might need. // Build a new class loader. // Launch Wombat.