java-web-start

Issues with Java Web Start and Safari

。_饼干妹妹 提交于 2019-12-18 08:29:39
问题 I have a Java webstart application, fully signed, and it has been deployed live for over a year now. We have never been able to get it to work with Safari for some reason. Actually, I have not been able to get any JAWS application working with Safari. Internet searches are spotty and I can’t seem to nail down why Safari has issues with web start. EDIT Here is the java stack trace from the Java console in Safari. Please understand that the Java Web Start application works correctly without any

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=

How to use JNLP to pass command line arguments to the application?

浪尽此生 提交于 2019-12-18 04:48:07
问题 I have a JNLP package for my application. Now I have the need to pass command line arguments to my application. How do I extend my JNLP file to list the command line arguments? For instance, I need to say java main.class arg1 arg2 and the arg1 and arg2 need to be mentioned as part of JNLP file. 回答1: Look to the description of the application-desc Element for further details of the argument element. The application element indicates that the JNLP file is launching an application (as opposed to

How to specify a JRE range in jnlp file?

∥☆過路亽.° 提交于 2019-12-18 04:47:21
问题 We have a java app which uses Java Web Start. The jnlp file is configured with [j2se version="1.5+"]. So if JRE 1.5 and 1.6 are installed, the app is run on 1.6. Now, we have requirement where the app should be restricted to run only within the range - JRE 1.5.0_07 through JRE 1.5.0_17 [j2se version="1.5*"] will not work - it will always launch the app with the latest jre from 1.5 family. I can request an exact product version by including the href attribute. [j2se version="1.5.0_14" href=

Is it possible to use Java webstart execute .exe or dll?

流过昼夜 提交于 2019-12-18 04:25:11
问题 I know java webstart is running under a secure sandbox. Is it possible to include a .dll/.exe in the jar (or have the webstart download it to the local machine) and then execute it (using Runtime.exec or process,etc) Please Advise. Any suggestion/comment is welcome! 回答1: Yes. You have to wrap the .dll in a .jar file, and reference it in your .jnlp file using <nativelib> See here for a more detailed description. If you want to run an executable, then your best bet is to package it up in your

The import “javax.jnlp” cannot be resolved

不问归期 提交于 2019-12-18 04:09:33
问题 I am learning Java and trying to run some examples using Java web start. However, I cannot seem to find that package javax.jnlp . This same error is haunting me on both windows and linux.I've installed oracle jdk 7 on windows.OpenJDK 1.6 is the version installed on linux. Searching the internet for the package with no luck.It is no longer available on oracle's website because they insist that the package is a part of the jdk. I've searched the installation directories for it.some claim it is

Passing command line arguments to javaws (Java WebStart) executable

做~自己de王妃 提交于 2019-12-17 18:27:13
问题 Summary for those who might not want to read that much: How do I do this: ? If we could pass ad-hoc command-line args to javaws, then javaws apps could be more like "1st class citizen" "ordinary application". E.g. we could pass filenames of files to be opened. I would like to know if there is a way to pass "ad-hoc" command line arguments to the javaws executable. I already know how to specify them in JNLP file: <application-desc main-class="org.example.ClassName"> <argument>... While this can

Looking for Webstart Maven Plugin sample application [closed]

邮差的信 提交于 2019-12-17 18:23:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am looking for source code for a complete application that uses the Webstart Maven Plugin. Any ideas? 回答1: I tried the webstart plugin in a prrof of concept involving an embedded tomcat server. The plugin is bound to the package phase and takes a longtime to execute, I would recommend to invoke it manually

Looking for Webstart Maven Plugin sample application [closed]

别说谁变了你拦得住时间么 提交于 2019-12-17 18:22:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am looking for source code for a complete application that uses the Webstart Maven Plugin. Any ideas? 回答1: I tried the webstart plugin in a prrof of concept involving an embedded tomcat server. The plugin is bound to the package phase and takes a longtime to execute, I would recommend to invoke it manually

Remote debugging java web start under JVM 1.8

左心房为你撑大大i 提交于 2019-12-17 16:34:29
问题 I have a Java Web Start application, which I used to start through a shortcut: "C:\Program Files\Java\jdk1.7.0_67\bin\javaws.exe" -J-Dfile.encoding=UTF-8 -J-Xdebug -J-Xnoagent -J-Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=8200" http://xxx/yyy/zzz.jnlp But after installing JDK 1.8 it all stopped working, my javaws don't see any of additional X||D params. I tried this way: setenv JAVAWS_VM_ARGS "-Dfile.encoding=UTF-8 -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,suspend