java-web-start

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

此生再无相见时 提交于 2019-12-03 17:31:21
问题 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

Java 7 update 45 broke my Web Start SWT application

左心房为你撑大大i 提交于 2019-12-03 13:54:21
问题 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. 回答1: I have experienced the same issue

Launching a desktop application from a web site

橙三吉。 提交于 2019-12-03 13:38:25
Is it feasible to launch an application via a browser / URL? What are the options for doing this? I know the way to do it with IE and Windows (which usually doesn't work). Ideally, I would like this to be browser independent. Our application is RCP, so in theory Java Web Start could work, we would just have to do some significant changes to how we deliver our application to users, which I would like to avoid. Our web server code is currently all Java if that makes a difference. I pretty much gave up on this until I clicked a url on Apple's site, which in turn launched iTunes. How does Apple do

java 8u31 plugin causes signed applets to load much slower

£可爱£侵袭症+ 提交于 2019-12-03 12:01:02
i have noticed that signed applets are loaded much slower with the latest plugin (included in java 8u31 and 7u75). I have debugged the situation quite a lot and i found out that the problem is directly related to the size of the jar files that are referenced in the jnlp file. The problem is that each time the applet starts, there is some 're-indexing' of the cached jar files that takes time. To reproduce the issue i did this: I created a minimal applet and in the jnlp file i used to deploy it, I added several irrelevant .jar files (that are not even referenced, so the classloader does not load

Unidentified developer for Java Web Start application on OS X

家住魔仙堡 提交于 2019-12-03 11:40:34
On Mac OS X 10.9 signed Java Web Start applications are blocked by default with the message: "application.jnlp" can't be opened because it is from an unidentified developer. I know it's possible to weaken the security checks to allow any application to run, but that requires a manual intervention of the end user. Is it possible to "sign" a Java Web Start application such that it is recognized as originating from an identified developer? Thank you Apple does appear to support signing of webstart -- but not directly. You have to bundle it in an archive. See the note at the bottom of this page:

Testing java web start application using jemmy

六月ゝ 毕业季﹏ 提交于 2019-12-03 10:39:20
I need to create some gui tests using Jemmy but I have no idea how to launch it with javaws application. In tutorials/examples/etc is something like that: new ClassReference("org.netbeans.jemmy.explorer.GUIBrowser") .startApplication(); This code opens an example window, but how can I, using ClassReference object open *.jnlp file? Or is it another way to "connect" jemmy with java web start application? Thanks for advance. You can achieve this by preparing special build with Jemmy included and call Jemmy from the app run in jnlp mode itself. The solution is: Place build files into any folder on

Java Webstart and URLConnection caching API

耗尽温柔 提交于 2019-12-03 09:30:58
The description of the URLConnection caching API states as the last sentence: There is no default implementation of URLConnection caching in the Java 2 Standard Edition. However, Java Plugin and Java WebStart do provide one out of the box. Where can I find more information about the Webstart ResponseCache? Which Versions of Webstart on which platforms activate Caching? In which cases is it active? Only HTTP Get? Can it be configured? Is the sourcecode available? Background: Case 1 With following (groovy) code def url = new URL('http://repo1.maven.org/maven2/') def connection = url

Java web start - Unable to load resource

浪尽此生 提交于 2019-12-03 07:46:21
问题 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

java jre 7u45 breaks classloader.getResources()?

孤街浪徒 提交于 2019-12-03 06:57:44
I have code to iterate over the results of classLoader.getResources("META-INF/MANIFEST.MF") to return the list of jars on the class path. This worked fine from 1.6.0_18 all the way to 1.7.0_40. Now 1.7.0_45 breaks this by showing a security warning popup about mixed signed/unsigned code. Small self contained testcase to demonstrate problem: package testcase; import java.io.*; import java.net.*; import java.util.Enumeration; import java.util.logging.*; public class TestCase { public static void main(String[] args) { getAllJarUrls(); } public static void getAllJarUrls() { try { final Enumeration

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

↘锁芯ラ 提交于 2019-12-03 06:29:08
问题 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