java-web-start

Java Web Start broken since JDK 1.7

ぃ、小莉子 提交于 2019-12-29 04:23:05
问题 HERES THE ANSWER: It appears (through our testing) that Java 7 Web Start requires you to host your resources on a server using an SSL certificate. Your cert does NOT have to be signed, but unsigned certs will prompt the client with a trust message that they can ignore. See the below answer for more details We have an internal application which we have been using for many years now. In order to make maintenance easier for this application we have not provided an installable version of the

Opening JNLP File in Java 6 JRE instead of JRE 7

眉间皱痕 提交于 2019-12-29 04:20:09
问题 I have Java 6-based Java Web Start application that I need to open on a Windows machine. The machine has JRE 7 installed, with JRE 6 copied manually to the Program Files folder. The problem is that whenever I want to open the JWS application, it opens using Java 7. Even if I use the javaws executable from JRE 6, some properties still refer to JRE 7 files (I verified this by using javaws -verbose app.jnlp . How can I force JRE 6 just for this application? 回答1: I have Java 6-based Java Web

How to allow running only one instance of a Java program at a time?

柔情痞子 提交于 2019-12-28 03:30:06
问题 I need to prevent users from starting my Java application (WebStart Swing app) multiple times. So if the application is already running it shouldn't be possible to start it again or show a warning / be closed again. Is there some convenient way to achieve this? I thought about blocking a port or write sth to a file. But hopefully you can access some system properties or the JVM? btw. target platform is Windows XP with Java 1.5 回答1: I think your suggestion of opening a port to listen when you

How to launch a Java Web start application with dynamic parameters

夙愿已清 提交于 2019-12-25 09:06:56
问题 I'm trying to migrate a Java applet to a Java web start application. The applet was activated from a JavaScript with several parameters, some are not hard-coded ( sessionId , tempFilePath ): deployJava.runApplet(attributes, parameters); In order to migrate the applet I'm using a simple JNLP file with applet-desc tag. And from the JavaScript I call: deployJava.launchWebStartApplication('$jnlp_path'); I just can't understand how to pass to the web start application the parameters that were

how .net MVC application can communicate with Core java desktop application using JWS?

↘锁芯ラ 提交于 2019-12-25 07:49:03
问题 We have a java desktop application and we are planning to launch that java desktop application using JWS and that is working absolutely fine. The issue is -- we ask some user related information from user on web page and launch java desktop application using JWS. Now we would like to have that information provided by user on web page in our java application. Please suggest how we can access those information in java code ? We have find two approaches -- Can java code read that information

Java web start - Version problems

大城市里の小女人 提交于 2019-12-25 06:49:27
问题 I've decided to make my app java web start, i prepared the .jar file and .jnlp. Here is .jnlp: <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://www.mypage.com/jar/" href="BoxChat.jnlp"> <information> <title>BoxChat</title> <vendor>Kitty</vendor> </information> <resources> <!-- Application Resources --> <j2se version="1.6+" href="http://www.mypage.com/jar/"/> <jar href="chat.jar" main="true" /> </resources> <application-desc name="BoxChat" main-class="chat.class" width

Why can't I get Netbeans with Java Web Start enabled to work on my executable?

こ雲淡風輕ζ 提交于 2019-12-25 06:38:01
问题 I am writing an online Java Game client in the NetBeans IDE and I would like to make it run with Java Web Start. I have a main which makes the initial connection to the game server... https://dl.dropboxusercontent.com/u/214507961/Main.java A Java Swing GUI that I made with the Netbeans GUI builder... https://dl.dropboxusercontent.com/u/214507961/GUI.form And Object input/output streams connected to my game/web server... https://dl.dropboxusercontent.com/u/214507961/Clients_Input.java https:/

JNLP is not updated even though there is update=“always” policy=“always”

走远了吗. 提交于 2019-12-25 05:34:10
问题 My JNLP file is: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <jnlp codebase="http://fuuu.sk/" href="launch.jnlp" spec="1.0+"> <information> <title>PocketBrain</title> <vendor>zatokar</vendor> <homepage href="www.fuuu.sk"/> <description>PocketBrain</description> <description kind="short">PocketBrain</description> </information> <update check="always" policy="always"/> <security> <all-permissions/> </security> <resources> <j2se version="1.7+"/> <jar href="PocketBrain.jar" main="true"

Parsing xml response

本秂侑毒 提交于 2019-12-25 03:53:37
问题 I have a JAVA application where I am sending some xml requests and receiving xml responses. I first receive response in string and then write a file and storing this file into file system. Then while parsing the xml response file I am accessing this from file system and use some of the data for further business logic. File file = new File("log\\XMLMessage\\LastXMLResponse.xml"); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder();

Implementing JWT, JWE and JWS (signed JWT) with Keycloak in Spring Boot

巧了我就是萌 提交于 2019-12-24 19:34:08
问题 I try to implement a simple OAuth2 "Client Authentication with Signed JWT" Demo App using Spring Boot and Keycloak as AuthService. The idea is: one secured REST service "The Producer" offering an endpoint GET /person for all users/principals with the role "read_person" offering an endpoint POST /person for all users/principals with the role "write_person" another (unsecured) REST service "The Consumer" offering an enpoint /api open for everybody calling internal the "producer" via Feign