Showing posts with label jnlp. Show all posts
Showing posts with label jnlp. Show all posts

Friday, January 12, 2018

How do I see the “Do you want to run this application” from this publisher dialog again for a JNLP

Leave a Comment

I clicked on the checkbox shown here.

Now I dialog is not shown again. However for testing purpose I need to reset this setting so that I can see the dialog again. How do I do that? I couldn't find where this setting is stored.

I am on Firefox 57.0.2

1 Answers

Answers 1

You can reset Java's security warnings. To do so you need to enter this in a command prompt (use cmd.exe or Terminal to get a prompt):

javaws -viewer 

Then 2 dialog boxes pop up. You can dismiss the frontmost 'Java Cache Viewer' (see note on that below). The 'Java Control Panel' has 5 tabs at the top, where you click Security, and then Restore Security Prompts

[ General ][ Update ][ Java ][ Security ][ Advanced ]

enter image description here

Note: The Java Cache Viewer could be useful in testing. It allows you to remove a previously used JNLP app.

Read More

Tuesday, January 9, 2018

Where are JNLP related settings stored

Leave a Comment

I running a JNLP application I built from Firefox and I get these dialog boxes On some machines, I can check the checkbox (do not ask again) and I am never prompted for these questions again. However, on other machines, even if I check the checkboxes, I get prompted with these questions again.

Where are these settings stored - are they stored in firefox or are they stored in the Java Control Panel? I want to troubleshoot this further on the machines where I getting reprompted.

1 Answers

Answers 1

The first dialog box comes from firefox. The second one comes from Java Web Start.

For this firefox dialogbox

when you thick the check box firefox stores this setting change in "handlers.json" file which is stored at profile folder. You can find profile folder at about:profiles page. Also you can modify later this setting via firefox preferences page's(about:preferences) General -> Applications section.

For java web start

when you select the checkbox it adds certification into ~/.java/deployment/security/sandbox.certs file and never asks again.

Read More

Sunday, April 17, 2016

set param value of jnlp dynamically

Leave a Comment

I am trying to launch applet using JNLP. I want to pass some parameter dynamically to applet. My JNLP file looks like

<?xml version="1.0" encoding="UTF-8"?>     <jnlp spec="1.0+" codebase="http://localhost:8080/WebAppTest/jar/" href="">         <information>             <title>JNLP Test</title>             <vendor>Java</vendor>         </information>          <resources>             <!-- Application Resources -->             <j2se version="1.5+" />             <jar href="test.jar" main="true" />                     </resources>         <security>             <all-permissions/>         </security>         <applet-desc               name="Test Applet"              main-class="com.test.TestApplet.class"              width="100"              height="30">              <param name="testStr" value="something" />         </applet-desc>         <update check="background"/>     </jnlp> 

I want to set testStr value dynamically.

1 Answers

Answers 1

You cant get Request object in jnlp file directly, So as an alternate make jnlp as a jsp page and pass the request and response to it as shown in here - and change the content type to application/x-java-jnlp-file as they did.

one more link http://portal.krypthonas.de/2010/10/11/passing-dynamically-parameters-to-a-java-web-start-app-jnlp/ with complete code snippets.

Read More