java-web-start

What is the best way to detect whether an application is launched by Webstart

孤者浪人 提交于 2019-12-03 05:46:34
As it was made clear in my recent question , Swing applications need to explicitly call System.exit() when they are ran using the Sun Webstart launcher (at least as of Java SE 6). I want to restrict this hack as much as possible and I am looking for a reliable way to detect whether the application is running under Webstart. Right now I am checking that the value of the system property "webstart.version" is not null, but I couldn't find any guarantees in the documentation that this property should be set by future versions/alternative implementations. Are there any better ways (preferably ones

Mini-OSGi that can run in a sandbox (like AppEngine or WebStart)?

余生长醉 提交于 2019-12-03 05:10:19
问题 I really like the concept of modular bundles as implemented by OSGi. I also like "managed deployment" services like Google AppEngine (for web application) or Java WebStart (for client software). These two ideas seem to complement each-other rather well conceptually. However, the OSGi standard includes a couple of features that make it impossible for implementations like Felix or Equinox to run on top of sandboxed virtual machines, such as AppEngine or Webstart. In these environments, it is

Java 7 update 45 broke my Web Start SWT application

半腔热情 提交于 2019-12-03 04:56:07
I maintain an Eclipse RCP application launched with WebStart. Java 7 u45 made some security changes, and now my application crashes on startup. I've added to the manifest: Permissions: all-permissions Codebase: * Trusted-Library: true This removed all of the warning messages from the Control Panel. But I still have a classloader issue when trying to load my IApplication implemenentation, probably the first of my classes to load. This is new to update 45. I have experienced the same issue and managed to solve it by doing following: In all manifest files (for each JAR in your RCP project) add

How to handle java web start (jnlp) downloading progress in a preloader?

怎甘沉沦 提交于 2019-12-03 01:12:11
Issue I have a preloader for my application that handles the Application-specific initialization. Now I'm trying to extend this so that the preloader also shows the progress of the downloaded application JARs. TL;DR Why is the preloader not getting loaded during Phase 2 , as this should handle the PreloaderFx::handleProgressNotification(); to track the downloading of the JARs I suppose? Update 14 March 2016 : Is using DownloadServiceListener the way to solve this? How to connect this to a JavaFX stage? Documentation According to Oracle , there are 4 phases when an application gets launched:

Java web start - Unable to load resource

随声附和 提交于 2019-12-02 21:13:28
I've got a jar that loads great with java web start when I browse through the IP address of the server. Once I try the server name instead I get the following exception: com.sun.deploy.net.FailedDownloadException: Unable to load resource: at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source) at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source) at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source) at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source) at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source) at com

How to differentiate between different JavaWS applications from the list of processes in the task manager process list?

拈花ヽ惹草 提交于 2019-12-02 20:31:41
问题 I am using JavaWS to launch an application, then how to check whether that application is running or not in the user's machine as it's name in the Task manager process list is not what I gave in the JNLP file. NOTE. I checked the task Manager process list but there the name of the process is javaw.exe and all the applications which are using JavaWS will have the same name. My question being if the user has launched multiple JavaWS applications then how can we identify the process which we

How do I upgrade to jlink (JDK 9+) from Java Web Start (JDK 8) for an auto-updating application?

你。 提交于 2019-12-02 19:58:30
Java 8 and prior versions have Java Web Start , which auto-updates the application when we change it. Oracle has recommended that users migrate to jlink , as that is the new Oracle technology. So far, this sounds good. This comes with a host of benefits: Native code on Windows, Mac and Linux Modularization of the code (although Proguard does this as well) The use of new, supported technology. The problem: I can't find the canonical Java solution to auto-update with jlink. One would think that Java Web Start could continue to be used, especially if one casually reads this document . Notice the

Mini-OSGi that can run in a sandbox (like AppEngine or WebStart)?

故事扮演 提交于 2019-12-02 18:24:54
I really like the concept of modular bundles as implemented by OSGi. I also like "managed deployment" services like Google AppEngine (for web application) or Java WebStart (for client software). These two ideas seem to complement each-other rather well conceptually. However, the OSGi standard includes a couple of features that make it impossible for implementations like Felix or Equinox to run on top of sandboxed virtual machines, such as AppEngine or Webstart. In these environments, it is not possible to get direct access to a file system, for example, which precludes the OSGi bundle cache

AWS S3 Java SDK - Download file help

帅比萌擦擦* 提交于 2019-12-02 16:13:06
The code below only works for downloading text files from a bucket in S3. This does not work for an image. Is there an easier way to manage downloads/types using the AWS SDK? The example included in the documentation does not make it apparent. Thanks! AWSCredentials myCredentials = new BasicAWSCredentials( String.valueOf(Constants.act), String.valueOf(Constants.sk)); AmazonS3Client s3Client = new AmazonS3Client(myCredentials); S3Object object = s3Client.getObject(new GetObjectRequest("bucket", "file")); BufferedReader reader = new BufferedReader(new InputStreamReader( object.getObjectContent()

PropertyPermission access denied in JWS launch

纵饮孤独 提交于 2019-12-02 13:03:13
问题 I new to web-start and We are using exe4j to create executable from One-jar. In-order to make a "web start version" of our application I am trying to lunch One-JAR using web start with the specified Main-Class but I am getting the following error - java.security.AccessControlException: access denied (java.util.PropertyPermission one-jar.main-class read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at