java-web-start

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 ,

Creating a desktop icon using JWS JNLP for a JavaFX app

心已入冬 提交于 2019-12-19 07:31:21
问题 I am trying to get a custom destop icon to be displayed for my app but for some reason no matter what I do the same default java icon shows up. I have tried everything I can think of and gone and compared my jnlp file with others whose icons seem to work ok. According to everything I have read the following should work fine. But of course, it doesn't: <information> <title>MikesApp</title> <vendor>Mike</vendor> <homepage href="http://www.mikesapp.com/"/> <description>Mikes App.</description>

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

Invalid Thread Access even with XstartOnFirstThread in vm args

和自甴很熟 提交于 2019-12-19 03:53:21
问题 I have an embryonic Java Web Start application with a single class. It runs on Windows and Linux but gets the dreaded Invalid Thread Access error on Mac OS X. I realise that this has been dealt with elsewhere. I have spent two full days scouring the Internet and have implemented all the solutions, but the problem persists. My understanding is that calls to SWT must be made from the main thread which is the case here. Correct me if I am wrong in that. I will post 3 snippets below, the source

Java Web Start security dialogs with Java 7 update 51

帅比萌擦擦* 提交于 2019-12-19 03:36:10
问题 I build a Java Web Start application signed with a valid certificate. When I star the application the security dialog appear correctly as show in this figure http://www.java.com/en/img/download/trusted_signed.jpg My issue is about the "do not show again" checkbox. If the attributes href are present in the jnlp tag of the jnlp file the checkbox appear. If the attribute are not present, the checkbox doesn't appear and the run needs to be confirmed every time. (Example: < jnlp spec="1.0+"

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

Copy all created & third-party jars into a single folder with Gradle

☆樱花仙子☆ 提交于 2019-12-18 16:33:12
问题 we have a multi-project gradle setup with one Java jar for each subproject: - root-project |-sub-project-a |-sub-project-b |-sub-project-c Now, because we are creating a Java webstart application, we need to sign all project jars as well as all third-party libraries (dependencies). My approach was now to copy all built subproject jars and all third-party libraries into a seperate folder and execute a task for signing them. However I am not able to copy the jars. This was my approach in the

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!