/** * TODO add proper Error handling and display in this function. */ public static void openMIDletUrlSafe(String urlString) { try { getInstance().openMIDletUrl(urlString); } catch (IOException e) { Message.error("Unable to open jad " + urlString, e); } }
protected void openMIDletUrl(String urlString) throws IOException { midletClassOrUrl = urlString; if (!autoTests) { openMIDletUrl(urlString, createMIDletClassLoader(true)); } else { runAutoTests(urlString, false); } }
File file = new File(midletClassOrUrl); String url = file.exists() ? IOUtils.getCanonicalFileURL(file) : midletClassOrUrl; openMIDletUrl(url); } catch (IOException exception) { Logger.error("Cannot load " + midletClassOrUrl + " URL", exception);