jnlp

How to set preferIPv4Stack property for JNLP app?

拥有回忆 提交于 2019-12-10 11:23:46
问题 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

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

萝らか妹 提交于 2019-12-10 10:37:44
问题 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

Java Web Start causing slow execution

旧街凉风 提交于 2019-12-10 10:23:11
问题 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

How to deploy and run javafx application in tomcat

泄露秘密 提交于 2019-12-10 10:19:19
问题 I have a requirement in my application ,Running the javafx application in browser from web-server. how can i achieve this thing. Thanks in advance. 回答1: Solution Place a copy of the jar, jnlp and html file output by the NetBeans build into a directory of your webserver, then access the html file in your browser. For example, let's say you called your application MyPowerApp and netbeans output MyPowerApp.html and you wanted to deploy that to a local Tomcat server. Download and install a copy

Deploying an SWT application on Java Webstart

北慕城南 提交于 2019-12-09 23:45:46
问题 Is it possible to deploy SWT applications using JNLP. Especially loading the swt native library (dll in Windows, so in Linux)? Any links? I found one at IBM Developer Works, however it just describes using swt.jar. In addition to that, is it possible to load the native dll files over JNLP? 回答1: The IBM developer works article you linked to contains everything you need to know including how to load the native dll files. Notice the nativelib element in the resources. The jar file referred to

UNKNOWN publisher when launching Java applet using JNLP

℡╲_俬逩灬. 提交于 2019-12-09 20:58:21
问题 After upgrading to JRE 1.7.40 I am getting a 'UNKNOWN' publisher warning message. I am using JNLP to download the client jars, these jar files are signed using a keystore file. I am generating the Keystore file by running keytool -keystore mykeystore -genkey -alias myalias -keyalg RSA -keysize 2048 Then generating .csr file keytool -certreq -keyalg RSA -alias myalias -file Test.csr -keystore mykeystore I then use mykeystore to sign my jar using ant Then I am making the Test.csr file a trusted

Unable to debug JNLP with Java 8

…衆ロ難τιáo~ 提交于 2019-12-08 19:04:21
问题 I have tried all ways running application as 1) javaws -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9123 My.jnlp 2) setting the same option in JAVA_TOOL_OPTIONS 3) setting the same option in JAVAWS_VM_ARGS 4) setting the same option (without -J) in Java control panel Tried the same options with or without Xnoagent Each and every way, after doing it when I try to connect from eclipse - it cannot connect. When I do netstat -a - it doesn't show anyone listening on 9123. I

iOS tests will not run on simulator when using Jenkins through JNLP

倾然丶 夕夏残阳落幕 提交于 2019-12-08 16:01:00
问题 I have been trying to get xcodebuild tests to work on a remote machine using Jenkins. I ran into the error of not being able to launch a GUI through SSH and solved it by launching a slave through JNLP as suggested here: Timeout when running xcodebuild tests under Xcode 6 via SSH. Now I'm getting a new error: Error Domain=IDEUnitTestsOperationsObserverErrorDomain Code=3 "Canceling tests due to timeout in Waiting for test process to check in..." I also get these errors whether I successfully

Authentication required window popping up after 7u21 update

萝らか妹 提交于 2019-12-08 15:53:55
问题 I've been working on a project for the last 6 months. For this project I have a glassfish server instance where a webservice is deployed. At the client side, I'm using JavaFX2.2 which does REST requests with Jersey (XML requests/responses, no JSON) with BASIC authentication. When the user starts the program (JWS/JNLP), normally they just enter their credentials in an own made login window, press the login button and start working. Since 7u21 however, I got an extra Java "Authentication

Using JNLP File to launch an application

旧巷老猫 提交于 2019-12-08 12:24:39
问题 I have a jsp page as: <html> <head> <title>Try in JNLP</title> <script src="http://www.java.com/js/deployJava.js"></script> <script> var dir = location.href.substring(0, location.href.lastIndexOf('/')+1); var url = dir + "try.jnlp"; deployJava.createWebStartLaunchButton(url, '1.6.0'); </script> <noscript>JavaScript is required for this page.</noscript> </head> <body> </body> </html> and have a jnlp file as : <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://localhost