static Class hotwireSharingLibraries(S progID) ctex { Pair p = CompilerBot.compileSnippet2(progID); File jar = p.a; assertTrue(f2s(jar), jar.isFile()); // collect files (program + libraries) L files = ll(jar); S dehlibs = unnull(loadTextFileFromZip(jar, "libraries")); L myLibraries = myLibraryFiles(); print("My libraries: " + myLibraries); Matcher matcher = Pattern.compile("\\d+").matcher(dehlibs); while (matcher.find()) { S libID = matcher.group(); File lib = loadLibrary(libID); if (myLibraries.contains(lib)) print("Skipping lib " + lib); else { print("Adding lib " + lib); files.add(lib); } } // make class loader JavaXClassLoader classLoader = new JavaXClassLoader(progID, files, myClassLoader()); ret hotwire_finish(classLoader, progID, p.b); }