jnlp

Java9 JNLP --add-opens not working

六眼飞鱼酱① 提交于 2019-12-05 18:37:13
问题 I have created a simple test case to test Java 9 Web Start with the new modules. Unfortunately, Java 9 Web Start does not by default support --permit-illegal-access like regular Java 9 does. Java 9 Web Start is suppose to support --add-opens (see https://bugs.openjdk.java.net/browse/JDK-8172986). I'm using Java 1.9.0_181_ea. Here is my test class: import java.awt.Toolkit; import java.lang.reflect.Method; import java.lang.IllegalAccessException; import java.lang.reflect

Netbeans JNLP Webstart error

血红的双手。 提交于 2019-12-05 15:43:55
I have been fighting with this all day and I simply cannot figure out what I am doing wrong. I have a project in netbeans that I created a web start page for, as per the method in the netbeans tutorial but every time I try to run either the tutorial project or my project as a web start I get the following error: java.lang.NumberFormatException: For input string: "\Users\<snip>" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at com.sun.deploy.security.DeployManifestChecker

Trying to pass multiple command line parameters to javaws launch application?

坚强是说给别人听的谎言 提交于 2019-12-05 14:52:30
I have seen similar questions about this but none of them have been able to help me resolve my issue. I have been given a requirement to be able to pass in multiple command line parameters to launch a custom Java application we use. Anyway I have tried this command as all the documentation I can find says: "javaws -open arg1 arg2 arg3 arg4 arg5 arg6 http://yadda/html/launch.jnlp" I have also tried various numbers of parameters and did notice that the "-open" does indeed get passed in as parameter arg[0] but for some reason it will not accept more arguments. One of the related solutions says

OSX Blocking JNLP Launch Java1.8U40 - Anyone Know Why?

↘锁芯ラ 提交于 2019-12-05 13:17:10
We deploy our application as a JNLP launch file and/or as a webpage applet. I have a customer that updated his MAC OSX system to the latest Java Version 1.8_40. After upgrading the JNLP launch stopped working. It seems to start Java (flashes blue java logo) then stops. No Exception is thrown. I suspect yet another OSX security hurdle. We adjusted his OSX Security settings to trust our application. We adjusted his Java security to trust our site. We also adjusted the Safari preferences to allow the application to run unrestricted ("unsafe mode"). The application is signed with a code signing

Java Webstart with Tibco Native Libs

走远了吗. 提交于 2019-12-05 08:47:13
I am trying to deploy an application that uses the native implementation of Tibrv through the TibrvJ library using Java Webstart . I have packaged up all of the Windows dlls from inside c:\tibco\tibrv\bin into a Jar file and have added these to the nativelib element in the JNLP file. I was hoping that webstart would take the dll files from the tibco-7.5.1-nativelibs.jar file and allow them to be loaded via System.loadLibrary which is called from Tibrv.open() . However it doesn't seem to want to work properly. My JNLP file looks like this: <?xml version="1.0" encoding="utf-8"?><!DOCTYPE jnlp

How to make JNLP download the correct version of JavaFX 2?

陌路散爱 提交于 2019-12-05 08:39:13
JavaFX 2 is highly dependent on native code. For my desktop application, I would like to select the best-matching JavaFX flavor for each supported OS to make the installation on the target systems as painless as possible. Since JavaFX 2 comes with several Ant tasks to help with deployment, I thought this was the way to go, but I seem to have hit a dead end. The deploy task generates a JNLP file which includes a resource reference that calls the JavaFX installer: <resources> <jfx:javafx-runtime version="2.1+" ref="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2

Java Web Start Jar signing Issue?

本小妞迷上赌 提交于 2019-12-05 06:35:30
问题 I'm trying to run this Java application (jar) via Java Web Start and am having an incredibly difficult time. Here's my current JNLP source: <?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0+" codebase="http://localhost:8080/" href="Test.jnlp"> <information> <title>Jnlp Testing</title> <vendor>YONG MOOK KIM</vendor> <homepage href="http://localhost:8080/" /> <description>Testing Testing</description> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.6+"

Signing a jnlp in order to get rid of the Security Warning

匆匆过客 提交于 2019-12-05 00:02:52
问题 I am developing at a company where a jnlp file is used to start a swing web based java application. It has plenty of jars that are downloaded to the client's jvm cache. When I updated my jvm to its currently latest version (build 1.7.0_45-b18) I started seeing the security warning below when I try to run the jnlp file: After I saw this error and read this article about signing jnlp files from oracle site( Signing JNLP files) then I added three things to the project: A JNLP-INF folder

Java Web Start实践:动态生成JNLP

旧时模样 提交于 2019-12-04 21:08:05
Java很早就推出了Java Web Start(简称JWS)技术。这一技术的初衷很好:希望将桌面程序和Web页面之间搭起一个无缝的桥梁。虽然Applet技术已经存在了十多年,但是它 日趋老迈衰落,所以JWS也就应运而生了。 但是JWS并未顺利实现它的初衷。从Java的几次大改版都可以看到,JWS的bug多多,漏洞频频,Sun和Oracle不得不频繁的进行打补丁修复。 可以看看Java 5和6每次大小版本升级变化中,有多少是和Java Web Start有关的。难怪很多人都这样感叹:“哥再也不用Java Web Start部署应用了!”其实也未必,随着Java的不断完善,我们只要了解更多的技巧,就可以有效的消除一些JWS潜在的问题,并顺利的应用在企业应用 中。 以2BizBox ERP项目为例,本文介绍如何在企业应用中利用动态生成JNLP文件的技术来实现应用的快速部署。 大家知道,2BizBox ERP作为一个免费的高质量ERP软件,有成千上万的用户。就我们开发团队负责维护的服务器,就有近千台。每台服务器都是一家企业,每家企业又有几十上百 的客户端。如果采用下载客户端安装程序进行安装的方式来维护诸多的客户端,无疑是巨大的工作量,用户和我们开发团队都不会轻松方便。为了解决这一问题,采 用JWS无疑是必然的选择。 为了让客户端自动启动下载和安装程序,我们在企业的2BizBox

Migrating Java Applet to Java WebStart (JNLP)

和自甴很熟 提交于 2019-12-04 20:33:45
I'm going to migrate a Java Applet to be started via JNLP as a Java Web Start Application and run into some troubles/missunderstandings ... One of the resources I've got is this: 6 Migrating Java Applets to Java Web Start and JNLP: But let's start: Currently the application is an applet ( JApplet ) and was started in past by embedding into an HTML with the applet tag referring to a JNLP. Now since applet support was dropped by all browsers, I should run it as Java Web Start. Simply calling same JNLP failed as the resources (JAR files) couldn't be loaded. This was as a first step fixed by