javax.jnlp.UnavailableServiceException Java Examples
The following examples show how to use
javax.jnlp.UnavailableServiceException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebstartPersistence.java From marauroa with GNU General Public License v2.0 | 6 votes |
/** * Creates a instance of class */ public WebstartPersistence() { try { ps = (PersistenceService) ServiceManager.lookup("javax.jnlp.PersistenceService"); bs = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService"); if (ps != null && bs != null) { codebase = bs.getCodeBase(); } } catch (UnavailableServiceException e) { e.printStackTrace(System.err); ps = null; bs = null; } }
Example #2
Source File: MainPanel.java From java-swing-tips with MIT License | 5 votes |
private static ClipboardService getClipboardService() { try { return (ClipboardService) ServiceManager.lookup("javax.jnlp.ClipboardService"); } catch (UnavailableServiceException ex) { return null; } }
Example #3
Source File: JnlpResponseCache.java From libreveris with GNU Lesser General Public License v3.0 | 5 votes |
private JnlpResponseCache () { try { service = (DownloadService) ServiceManager.lookup( "javax.jnlp.DownloadService"); } catch (UnavailableServiceException ex) { throw new NoClassDefFoundError(ex.toString()); } }
Example #4
Source File: Jnlp.java From libreveris with GNU Lesser General Public License v3.0 | 5 votes |
public BasicServiceFacade () { try { service = (BasicService) ServiceManager.lookup( "javax.jnlp.BasicService"); logger.debug("Real BasicService available"); // Use JNLP cache for all downloads JnlpResponseCache.init(); } catch (UnavailableServiceException ex) { logger.debug("No BasicService available"); } }
Example #5
Source File: Jnlp.java From libreveris with GNU Lesser General Public License v3.0 | 5 votes |
public DownloadServiceFacade () { try { service = (DownloadService) ServiceManager.lookup( "javax.jnlp.DownloadService"); logger.debug("Real DownloadService available"); } catch (UnavailableServiceException ex) { logger.debug("No DownloadService available"); } }
Example #6
Source File: Jnlp.java From libreveris with GNU Lesser General Public License v3.0 | 5 votes |
public ExtensionInstallerServiceFacade () { try { service = (ExtensionInstallerService) ServiceManager.lookup( "javax.jnlp.ExtensionInstallerService"); logger.debug("Real ExtensionInstallerService available"); logger.debug("ExtensionLocation = {}", getExtensionLocation()); logger.debug("InstallPath = {}", getInstallPath()); } catch (UnavailableServiceException ex) { logger.debug("No ExtensionInstallerService available"); } }
Example #7
Source File: WebStartSeasonInternetClient.java From ramus with GNU General Public License v3.0 | 4 votes |
public static void main(String[] args) throws UnavailableServiceException, IOException { new WebStartSeasonInternetClient().run(args); }
Example #8
Source File: WebStartInternetClient.java From ramus with GNU General Public License v3.0 | 4 votes |
public static void main(String[] args) throws UnavailableServiceException, IOException { new WebStartInternetClient().run(args); }
Example #9
Source File: WebStartSeasonTcpClient.java From ramus with GNU General Public License v3.0 | 4 votes |
public static void main(String[] args) throws UnavailableServiceException, IOException { new WebStartSeasonTcpClient().run(args); }
Example #10
Source File: WebStartLocalClient.java From ramus with GNU General Public License v3.0 | 4 votes |
public static void main(String[] args) throws UnavailableServiceException, IOException { new WebStartLocalClient().run(args); }
Example #11
Source File: WebStartTcpClient.java From ramus with GNU General Public License v3.0 | 4 votes |
public static void main(String[] args) throws UnavailableServiceException, IOException { new WebStartTcpClient().run(args); }
Example #12
Source File: WebStartClient.java From ramus with GNU General Public License v3.0 | 4 votes |
public static void main(String[] args) throws UnavailableServiceException, IOException { new WebStartClient().run(args); }
Example #13
Source File: Installer.java From libreveris with GNU Lesser General Public License v3.0 | 4 votes |
/** * The Installer.main method is called by Java Web Start on two * occasions within the application cycle: at installation time * (with single argument {@code install}) and at de-installation * time (with single argument {@code uninstall}). * * @param args either "install" or "uninstall" * @throws UnavailableServiceException */ public static void main (String[] args) throws UnavailableServiceException { if (args.length == 0) { throw new IllegalArgumentException( "No argument for Installer." + " Expecting install or uninstall."); } // Interactive or batch mode? String mode = System.getProperty("installer-mode", "interactive"); hasUI = !mode.trim() .equalsIgnoreCase("batch"); logger.info("Mode {}.", hasUI ? "interactive" : "batch"); Descriptor descriptor = DescriptorFactory.getDescriptor(); isInstall = isArgSet("install", args); isUninstall = isArgSet("uninstall", args); isAdmin = descriptor.isAdmin(); if (isAdmin) { logger.info("Running as administrator."); } INSTANCE = new Installer(); if (isInstall) { logger.info("Performing install."); INSTANCE.install(); } else if (isUninstall) { logger.info("Performing uninstall."); INSTANCE.uninstall(); } else { // Not a valid argument array logger.error( "Illegal Installer arguments: {}", Arrays.deepToString(args)); } }