java-web-start

Java jnlp application blocked by Security settings

旧街凉风 提交于 2019-11-30 01:31:08
问题 I have an enterprise java application that has plenty of jars that are downloaded to the client's jvm cache by a jnlp file. When I start the application I get the following stack trace on Java Console: Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException at com.sun.deploy.ui.DialogTemplate.imageAvailable(Unknown Source) at com.sun.deploy.ui.DialogTemplate.finalImageAvailable(Unknown Source) at com.sun.deploy.ui.ImageLoader$2.run(Unknown Source) at java.awt.event

Long startup delay for Java WebStart application since Java 1.7.0u40

一个人想着一个人 提交于 2019-11-29 16:50:44
问题 Since we installed Java 1.7.0u45 our WebStart application shows a major delay on startup on Windows systems (we haven't tried other platforms). Symptom is that after double clicking the application icon on the desktop the splash screen shows up quickly, stays for some time (as it did before) and closes. After this we have a delay of about 1 minute. Then, finally, the application window opens and everything works like a charm. Our application worked without problems up to Java 1.7.0u25. Java 1

How to learn game development? [closed]

∥☆過路亽.° 提交于 2019-11-29 15:43:01
问题 I've been a web programmer for a while and I can also program in Java. I have an idea for a small, multiplayer RPG game that I want to work on. It will be played through a java applet in the user's web browser. I have written the design document and specifications of the gameplay. What I'd like to know now is how I can develop the game? I've worked only with windows-like business apps in the past, with built-in widgets for textboxes, dropdowns, etc. With game programming it seems that I would

redirecting a java web start app logs to a file

淺唱寂寞╮ 提交于 2019-11-29 15:41:13
We have an application that we access over Java web start internally at our office. all the logs produced by the app are displayed in Firefox's console. what I want to do is to redirect that to a file. is that possible ? and how to do that ? P.S : the application is designed as follow : a client app that accesses an EJB on a server. the client part is the one made available through java webstart. I figured using the System.setOut method could be used to redirect all System.out.println() outputs to a file. Hence, this could be used in my app : System.setOut(new PrintStream("C:\\log.txt")); 来源:

Java Plug-In launch changes in response to the recent security vulnerability

天涯浪子 提交于 2019-11-29 15:24:29
How has Oracle changed the Java Plug-In launch experience for the user, in response to the recent security vulnerability? Details The JRE 1.7 Vulnerability Q&A at SO. Oracle Security Alert for CVE-2013-0422 Disabled Java warning appearance & affect on Java Web Start apps Andrew Thompson Short answer All applets, trusted or sand-boxed, are now prompted (the user is asked permission) before loading. Long answer Here I am testing using Oracle's own Test Java applet. It was chosen on the basis that it is relatively small, sand-boxed and provided by the maker of the same JRE/Plug-In we are testing.

Cannot launch applet using Java 7u21

為{幸葍}努か 提交于 2019-11-29 14:08:25
So we installed the Java 7u21 release that is supposed to tighten the security for applets. Unfortunately it tightened it so much that our applet does not run anymore. Not good. The interesting thing is that it only stopped working while we operate it with JWS. If we launch it as a standard applet from a standard web page everything works fine. In JWS mode we get security issues on at least reflection and java.lang.Thread.setDefaultUncaughtExceptionHandler . The certificates look ok. The release notes from Oracle does not provide much input on anything related to JWS. My question to the

Where can i download JNLP.jar

喜夏-厌秋 提交于 2019-11-29 13:36:49
How can i run the examples in the link ? Where can i get JNLP developer pack? Thanks Samrat C:\Program Files\Java\jdk1.6.0_27\sample\jnlp\servlet In other words, in the sample\jnlp\servlet dir of your JDK. You can also find the javax.jnlp.* classes in lib/javaws.jar under your JRE installation. Andrew Thompson The classes shown at the link are primarily of the JNLP API. It is automatically on the run-time class-path of apps launched using Java Web Start . As to how to add them to the compile-time class-path, see the tips in (the build files of) these demos . It's really hard to get there . The

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

孤者浪人 提交于 2019-11-29 11:41:33
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="my-prop" value="fixed-value"/> in the template, I sometimes get a dialog saying "This application is

url parameters in jnlp href attribute

人走茶凉 提交于 2019-11-29 07:53:56
I've been using url parameters to pass arguments to the main-method of the .jar application. After updating to latest jre 7u7 on windows 7, Java-web-start launcher crashes when launching the files. (JNLP download-servlet and jsp-page parses the url-parameters and inputs them in the argument further down) The interesting parts of the jsp <jnlp spec="6.0+" codebase="http://localhost:8080/" href="myfile.jnlp?username=charles"> ... <application-desc main-class="MyMain"> <argument><%=request.getParameter("username")%></argument> </application-desc> </jnlp> So this might or might not be a bug, Q1:

Can I delete downloaded JNLP file (Java web start/JWS) from Java application?

百般思念 提交于 2019-11-29 07:43:13
Google Chrome does not launch JNLP file automatically, so I recommend for our users this solution . It works but the downloaded JNLP file remains in download folder. Deleting them manually is troublesome. I want to add a function to our Java application: Google Chrome downloads a JNLP file and open it. The JNLP file starts our Java application. The Java application deletes the JNLP file (<= I want this function!) Can I get the file path of the downloaded JNLP file which started the Java application? Of cause, our Java application jar is signed and can access local resources. There is nothing