java-web-start

java webstart code signing requirements overview

强颜欢笑 提交于 2019-12-11 02:56:37
问题 I have a small javafx2 application that is used in the office. Some guys run it from Firefox, some run it as a desktop app. Webstart is great. The current approach is that I have added this to the jnlp file: <security> <all-permissions/> </security> Then created a key in a keystore using the keytool: keytool -genkey -keystore yourKeystore -alias keyname And I sign all jar files that are to be on the user's PC using jarsigner: jarsigner -keystore ./myapp.keystore -storepass xxx -keypass yyy

How SingleInstanceService of Jnlp Api works?

感情迁移 提交于 2019-12-10 23:39:12
问题 As it is mentioned that SingleInstanceService allow applications launched under Java Web Start to register themselves as singletons, and to be passed in new parameter sets when user attempts to launch new instances of them. How it works ? We register listners to the service once and it won't allow it to create another instance.but basiclly how it works that i am not getting. SingleInstanceService sis; ... try { sis = (SingleInstanceService)ServiceManager.lookup("javax.jnlp

JNLParseException [ Could not parse launch file. Error at line 56.]

删除回忆录丶 提交于 2019-12-10 21:06:26
问题 I am trying to load an applet using jnlp and deployjava.js but I could not get my head around this problem .Stacktrace as follows: JNLParseException[ Could not parse launch file. Error at line 56.] at com.sun.javaws.jnl.XMLFormat.throwNewException(Unknown Source) at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.jnl

JAVA web start download update in background

烈酒焚心 提交于 2019-12-10 18:33:37
问题 I have deployed an application using java web start. It is working fine. I've put in my jnlp file. Whenever the desktop shortcut icon is clicked it will check for the latest updates and download them before launching the application. But i want this update to be happen in background. So i make the following changes: . Now the application launches immediately after clicking on the shortcut. But i have faced the following problem: After launching the application web-start starts a background

AccessControlException when starting embedded Tomcat from Java Webstart

…衆ロ難τιáo~ 提交于 2019-12-10 16:59:56
问题 For our Kunagi Java web application we have a signed kunagi.jar file which contains our classes together with classes from embedded Tomcat 6. This runs perfectly when calling java -jar kunagi.jar . But when starting it with Java WebStart, I get an exception while embedded Tomcat is starting: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.catalina.deploy) at java.security.AccessControlContext.checkPermission(AccessControlContext

How to get back Java Preferences in OS X with Java for OS X 2012-006?

馋奶兔 提交于 2019-12-10 16:26:25
问题 After installing the Java for OS X 2012-006 update, the Java Preferences app, for configuring applets and, more importantly for me, Java Web Start apps has gone. The tech note about this update says: This update also removes the Java Preferences application, which is no longer required to configure applet settings. If it's no longer required, what has replaced it, or how do I get back the same functionality? One of the things I used to be able to do was configure when / how the Java Console

Avoid security alert “Do you want to run this application?” for a JWS app

早过忘川 提交于 2019-12-10 15:35:18
问题 We have a Java application that uses RxTx to update the firmware of our game console. To avoid security alerts when the users starts the Java application on our website through WebStart we have bought a trusted certificate and signed the application with that. All checks indicate that it is successfully signed and if I launch the application via Safari on my Mac(OS X 10.6.8) with Java 1.6.0_41 it starts without any complains. But if I launch it using IE9 on a Windows 8 machine I get an alert

How to start a java-web-start application and wait until it exits?

丶灬走出姿态 提交于 2019-12-10 15:33:03
问题 I just found out that javaws -wait doesn't do what is supposed to do on Windows. It will return before the aplication finishes. This bug is more than 5 years old and closed as won't fix 6281477, so we need a workaround. I looking for a clean solution that will: run unattended (no user intervention): currently if JNLP file is not accessible, Java will display an error window. if application fails for any reason we need a return code different from 0 It would be preferable to have a cross

Java Web Start Authentication Option

亡梦爱人 提交于 2019-12-10 14:59:36
问题 Ok, before you think that this is a simplistic request and that it must be out there; I've done about 2-3 hours of searching with no results. Is there a way to pass authentication information through Java Web Start (javaws) to access a password protected website? Essentially what I'm working towards is an auto-restart of a javaws application without having to re-implement what javaws does to pull the jar's down and then having to run Java on the downloaded application. I've really been trying

Starting javaws on Mac OS fails with “Cannot find message file”

牧云@^-^@ 提交于 2019-12-10 14:37:45
问题 can someone explain what is happening here? seneca:~ kiewie$ java -version java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode) seneca:~ kiewie$ echo $JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Home seneca:~ kiewie$ uname -a Darwin seneca 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386 seneca:~ kiewie$ javaws Java Web Start