jnlp

How to grant all permissions to java applet through JNLP without popups

限于喜欢 提交于 2019-12-06 12:44:19
We are launching an applet using jnlp The applet needs to load a native library The jar and the jnlp are signed with a self generated certificate. The jnlp grants all permission with <security> <all-permissions/> </security> The policy file grants all permissions grant { permission java.security.AllPermission; }; We are getting a popup dialog “ java security warning” That says: this application is going to perform an insecure operation. Do you want to continue ? Continue or cancel (see attached screen shot) There is no “allow always” button Which means that the dialog pops up “every time” the

Java applet: Chrome prompts to download java 7, IE and Firefox don't

二次信任 提交于 2019-12-06 11:27:14
I'm having the following problem running a Java applet in Chrome. This is the script I have in my page: <script type="text/javascript" src="http://www.java.com/js/deployJava.js"></script> <script type="text/javascript"> var attributes = { code: 'com.mycompany.MyApplet', id: 'myApplet', name: 'myApplet', width: 710, height: 540 }; var parameters = { jnlp_href: "MyApplet.jnlp" } ; var version = '1.6'; deployJava.runApplet(attributes, parameters, version); </script> <noscript>This page requires JavaScript.</noscript> And this is my .jnlp: <?xml version="1.0" encoding="UTF-8"?> <jnlp href=

Java Web Start Application can read files from local systems, but not write [closed]

青春壹個敷衍的年華 提交于 2019-12-06 10:02:53
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 6 months ago . please ask if you need more info. I have the security and all permissions tags in my jnlp, and when I run my java app offline it works correctly. File T = new File(System.getProperty("user.home") + File.separator + ".myapp/");<br /> if(!T.exists()) T.mkdirs(); File[] temp=new File[2]; temp[0] = new File(System.getProperty("user.home") + File.separator + ".myapp"+File.separator+"temp1.txt"); temp[1] = new File

How to set preferIPv4Stack property for JNLP app?

谁都会走 提交于 2019-12-06 07:40:29
I need to set java.net.preferIPv4Stack=true to an app started via JNLP (javaws and applet) Tried those, without luck... <j2se ...java-vm-args="-Djava.net.preferIPv4Stack=true" /> <property name="java.net.preferIPv4Stack" value="true"/> System.setProperty("java.net.preferIPv4Stack", "true"); The only way i could make it work was seeting when launching javaws from local filesystem: javaws -J-Djava.net.preferIPv4Stack=true myapp.jnlp What is not possible on a applet or URL. How should i set this property? With the Java 7 Update 6 (b17) the list of secure properties has been updated. See Bug

How can i deliver jetty with many webapps via jnlp?

与世无争的帅哥 提交于 2019-12-06 03:46:43
i have a webapp ( http://sourceforge.net/projects/sf-mvn-plugins/files/m2-repo/net/sf/maven/plugins/example-captaincasa-jnlp/0.1-SNAPSHOT/example-captaincasa-jnlp-0.1-SNAPSHOT.war/download ) wich use jsf in a servlet container. This works fine with jetty-maven-plugin run-war target at my local pc. In the future i would like make more of this kind of weapps. Now i am looking for a way to deliver this webapps with jetty via jnlp. The end user should be have a zero installation but the webapps needs servlet container and my hoster does not support a servlet container or application server or so

What's with the new JNLP Missing items warnings in Java 7?

我们两清 提交于 2019-12-06 03:45:20
问题 My JNLP still works fine after our switch from Java 6 to Java 7, but it now throws a whole series of errors like this: Missing Application-Name: manifest attribute for: http://blah.com/app.jar Missing Permissions manifest attribute for: http://blah.com/app.jar Missing Codebase manifest attribute for: http://blah.com/app.jar It repeats several times for our main jar and a couple times for one of our library jars. However, it does not occur at all for the bulk of our library jars. JaNeLa lists

Java Web Start causing slow execution

≡放荡痞女 提交于 2019-12-06 03:37:16
I have an application that I'm deploying with Java Web Start. When I was doing unit testing, I noticed a slight problem: whenever my application is run with Java Web Start, a particular operation takes a long time to execute. When run locally, however, it is quite fast. The particular operation I'm talking about is reading in a large (5k row) Excel file to parse it. This is the line of code: Workbook wb = WorkbookFactory.create(new FileInputStream(new File(inputFile.getText()))); To figure out the problem, I added a way to record the time: long time1 = System.currentTimeMillis(); Workbook wb =

JNLP files won't launch from IE11 on Windows 10

坚强是说给别人听的谎言 提交于 2019-12-06 02:12:49
问题 Since May 9, after a windows 10 update, on IE11 11.0.40, JNLP files wont launch from IE, but in a computer with IE version 11.0.34 it work perfectly. Any ideas? Thanks in advance 回答1: The problem is solved in Java 8 u162. Now you can have Java RE x86 and x64 installed and jnlp will open as it should in Internet Explorer. We are using sitelist / Enterprise Mode to redirect jnlp urls from Edge to Internet Explorer. 回答2: I had a problem opening a jnlp file, no matter what, trying to associate it

How to communicate between browser and Java Web Start applet

感情迁移 提交于 2019-12-06 01:29:56
问题 Current situation We currently use an applet to perform some operations, after which it redirects the current page. In its core, you could see the applet as the following: public class ExampleApplet extends Applet { @Override public void init() { Button redirect = new Button("Redirect"); this.add(redirect); final String target = this.getParameter("targetPage"); redirect.addActionListener((ActionEvent e) -> { try { getAppletContext().showDocument(new URL(target), "_parent"); } catch

How to pass the Java 9 '--permit-illegal-access' flag to a Webstart application?

隐身守侯 提交于 2019-12-05 23:08:17
问题 I got my application running with JRE build 9-ea+163 by passing the --permit-illegal-access flag to the VM. Now I want to start the app with Java Webstart. A first try with javaws -J--permit-illegal-access <JNLP-Url> does not work. I get the same InaccessibleObjectException with module java.base does not "opens java.util" to unnamed module as without the flag. Adding <j2se java-vm-args="--permit-illegal-access" version="9*"/> to the JNLP does not help. Does Webstart support the --permit