jnlp

Dynamically create response in JSF

只谈情不闲聊 提交于 2019-12-19 11:49:07
问题 I want to have a link on my JSF page. When you click this link, a Java Web Start application starts. The application doesnt affect the current page at all. The application just starts on its own. The problem is, I the JNLP file that starts the Java Web Start application needs to be generated on the fly. Basically I will decide which application and what paramaters for the JNLP file depending on the state of the application. Does anyone know of a way that I can accomplish this. Is it possible

How to publish a Java Web Start jnlp application without security warnings?

百般思念 提交于 2019-12-19 10:26:24
问题 I have a Java application that is launched from a jnlp file off of a website. I'm trying to get it to run without flashing up a bunch of security warnings before it runs. The program is broken up into about 10 different jar files, 30 or so jar libraries, and a couple native libraries also contained in jar files. I've signed all of the jar files with an official code signing cert (from Verisign), included the jnlp file inside of the jar file that holds the main class, and added permissions and

Are javaws exit codes really broken?

…衆ロ難τιáo~ 提交于 2019-12-19 08:14:30
问题 I was working to automate same java code execution using JNLP and I was surprised to discover that jawaws did not gave me a valid return code. Original execution line was: javaws -wait http://example.com:666/missing.jnlp This did showed an ugly window with "Unable to launch application." message. As you can image I tried to make this not require a GUI and tried: javaws -wait -Xnosplash -import -silent http://example.com:666/missing.jnlp But even if this command fails, it will still return 0 ,

package javax.jnlp is declared in module java.jnlp, which is not in the module graph

不羁岁月 提交于 2019-12-19 06:01:42
问题 I have a project that uses Java webstart technology. I decided to upgrade the Java version from 8 to 9. However, I faced the following error on compiling: error: package javax.jnlp is not visible import javax.jnlp.DownloadServiceListener; ^ (package javax.jnlp is declared in module java.jnlp, which is not in the module graph) I tried to include C:\Program Files\Java\jdk-9\lib\javaws.jar to the classpath, but still the same issue remains. 回答1: It looks like java.jnlp is not resolved by default

Force VM to launch in 32-bit mode WebStart JNLP

北慕城南 提交于 2019-12-18 17:03:23
问题 I am running a Java 32-bit app on Mac OS X Leopard via Web Start. I need to make sure the VM loads in 32-bit mode. How can I do this in the JNLP? 回答1: I found the answer right after I posted. In the "resources" tag you can do a line like below. The "-d32" will force the 32-bit VM load: <j2se version="1.5+" java-vm-args="-d32" href="http://java.sun.com/products/autodl/j2se"/> 来源: https://stackoverflow.com/questions/1478139/force-vm-to-launch-in-32-bit-mode-webstart-jnlp

Java Webstart intermittant JAR not updating

懵懂的女人 提交于 2019-12-18 12:23:57
问题 We use java Webstart to deploy a java application on our intranet. The application receives frequent updates. Once in awhile a user will launch the application from their desktop icon after we have updated the JARs / WAR on the webserver (timestamp changed) and Java Webstart will launch the old version instead of downloading a new one. Here is a paste of our JNLP, as you can see offline-allowed is on, but update check always and policy always. Also, download flag is eager. From my

Java WebStart slow, requesting libraries from invalid folder

跟風遠走 提交于 2019-12-18 09:02:28
问题 Problem and question: Java webstarted app looking for its classes in base folder instead of ./lib. As suggested in similar question at Java Web Start applications ask repeatedly for un-existing files I have turned off the jar signing, to rule out the security issue, and the problem persists. Below find the clean example on what is going over the network for this simple java program: public static void main(String[] args) { // TODO code application logic here System.out.println("Hello World!

Applet/JNLP on Java 11 migration

爱⌒轻易说出口 提交于 2019-12-18 07:06:09
问题 I have an application that runs under Java/JNLP applet and I would like to migrate to Java 11. As you know the applets and JNLP will disappear from Java 11. The goal is to keep my old code and remove the packages that contain the applets, is it possible to do this migration without switching to a new technology? 回答1: Yes and No. Yes you can keep your java business logic and data handling code (presumed you did a clean separation of your application layers). E.g. just convert to a standalone

How can I pass arbitrary system properties whose values may change to a signed Java RIA (applet, webstart) via JNLP?

烈酒焚心 提交于 2019-12-18 06:58:07
问题 Due to tighter security restrictions in 7u51 , due in January, I'm trying to sign my JNLP file. Our application requires certain custom system properties to be set, and the values of some of those properties are different depending on where the applet is being deployed. I would like to avoid having to re-sign the JAR containing the JNLP template for each deployment. The naive approach of putting <property name="my-prop" value="*"/> in the JNLP template does not work. Even with <property name=

Auto-Launch JNLP on click

这一生的挚爱 提交于 2019-12-18 05:37:11
问题 How do I get a JNLP file to auto-launch on click? (as opposed to clicking save or open when clicked) Is this some type of MIME association that the browser must first recognize? 回答1: There is a server configuration file that specifies MIME or content type by file extension. For JNLP, it should be application/x-java-jnlp-file . 回答2: I think the other answer is outdated as of today. Try changing your link from http:// or https:// to jnlp:// or jnlps://. So your url would look something like