- public static void main(String[] args) {
- if (args.length == 0) {
- System.err.println("usage: javainspect [PROJECT_DIR] [PACKAGE_GLOB] [GRAPH_NAME]");
- System.exit(1);
- }
+ public static void main(String[] args) throws MalformedURLException, ClassNotFoundException {
+ CommandlineConfiguration commandlineConfiguration = new CommandlineConfiguration(args);
+ System.out.println("Commandline config validated");
+
+ File jarFile = commandlineConfiguration.jarFile.getValue();
+
+ URLClassLoader classLoader = new URLClassLoader(
+ new URL[]{jarFile.toURL()},
+ commandlineConfiguration.getClass().getClassLoader());
+
+ Class classToLoad = Class.forName("eu.svjatoslav.sixth.e3d.gui.GuiComponent", true, classLoader);