public static void main(String [] args) throws ClassNotFoundException,
NoSuchMethodException, IllegalAccessException, InvocationTargetException {
try {
// Lookup the javax.jnlp.DownloadService object
DownloadService service = (DownloadService)ServiceManager.lookup("javax.jnlp.DownloadService");
DownloadServiceListener progressWindow = service.getDefaultProgressWindow();
// Search jars lazily downloaded
String lazyParts = System.getProperty("com.eteks.sweethome3d.lazyParts", "");
List<String> lazyPartsToDownload = new ArrayList<String>();
for (String lazyPart : lazyParts.split("\\s")) {
if (!service.isPartCached(lazyPart)) {