java-web-start

JWS Class not found error

↘锁芯ラ 提交于 2019-12-11 19:33:47
问题 I was trying to explore how the JWS works end to end, was following this blog. JWS tutorial link initially got "unsigned jar error" stackoverflow post- may be fixed now, but now its throwing class not found, tried multiple things like creating a class without package etc etc, but still its not working. A new class with the steps etc. I am not sure if its some version compatibility issue or not. Apache tomcat - 8.0.23 Java -1.8.0_40-b26 JNLP file details <?xml version="1.0" encoding="utf-8"?>

Windows can not find '\bin\ssvagent.exe'

末鹿安然 提交于 2019-12-11 17:34:45
问题 I have type the following on my windows 7 CMD:_ javaws -viewer But the following error was raised:- "Windows can not find '\bin\ssvagent.exe' ", so what is going wrong? 回答1: There are two easy ways to run your command properly: 1) For a permanent fix you need to add the java bin folder you your windows calsspath. Then when you use the javaws command it will know where the ssvagent.exe file is located. 2) If you only need to use this once or twice then you will need to naviagte to the jre bin

Web Start unable to load external driver

自作多情 提交于 2019-12-11 16:06:04
问题 I have a project as Java application, and it was running fine until I made it into web start. My project relies on external library to deal with serial port and USB port. To run this app. in DOS command: java -DPropLoc=Drivers.Properties -jar myprog.jar <args> In Netbeans 6.7.1 JRE 1.6u21, When select WebStart as Project Configuration, I can run the the main project but it failed to load the driver. In the Project Properties, I have the VM Option set to -DPropLoc="Drivers.Properties and the

How to use variables in JNLP arguments

旧时模样 提交于 2019-12-11 15:57:41
问题 Having the following sample jnlp: <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="$$codebase" href="$$name"> <information> <title>Some Example</title> <vendor>Some Sample Vendor</vendor> <homepage href="http://www.somesamplevendorhomepage.com"/> <description>Some Sample Description</description> <icon kind="splash" href="link_to_some_splash.jpg"/> <offline-allowed/> </information> <security> <all-permissions/> </security> <update check="always" policy="always"/>

Webstart https: works with server on certificate and not on loadbalancer

半世苍凉 提交于 2019-12-11 15:06:31
问题 I'm trying to create a https secure connection for my Java webstart application. All I did was to configure my Tomcat to use a certificate and I was done. I could just do "https://nsjns:8443/abc/xyz.jnlp" and it downloaded my application and worked fine. for production, we purchased a certificate and this cert was kept on the load balancer with the actual web server behind the load balancer. If I use the browser I can see the server and can download my jnlp file by typing the url in the

Can a signed Jar be run as an executable?

≯℡__Kan透↙ 提交于 2019-12-11 14:57:53
问题 I ask because I have an unsigned jar that runs and a signed version that doesn't. Looking at the manifests, I see no main class thing for the signed one. Do I have to run a signed jar from web start? 回答1: Not necessarily, but if you don't have a Main-class: in the manifest, you can't run it as an executable. If you know the main class, you can run it using the java executable, eg $ java -classpath ./myjar.jar MyClass 回答2: Sounds like you build process is updated the manifast.mf 回答3: you need

what are the advantages that JWS offers by keeping Jars separate vs One-Jar?

北城以北 提交于 2019-12-11 13:45:14
问题 I am trying to launch One-Jar using JWS but it could not make it launch. Can anybody suggest me a good approach to make web start version of application from my two options -- 1. Launch One-Jar using JWS Have anyone tried this earlier? I am not getting success in this. Related Post. 2. Launch simple application JAR by specifying each jar in property that are being used in application. I am looking a strong reason to avoid One-JAR because We always need to keep updating JNLP if any JAR version

SWT and Webstart on Mac

◇◆丶佛笑我妖孽 提交于 2019-12-11 13:43:32
问题 I'm trying to develop a UI using SWT and Java Webstart. As a starting point I've created a simple app that works fine with Windows and Linux, but fails to work on Mac. My test app is available here. There are also links to the jar files and class code. Can anyone explain how to make this work on Mac? 回答1: See this Eclipse bug. Your JNLP file is incorrect. Remove the line <j2se version="1.5+"/> from the first <resources> tag. Specifying <j2se version="1.5+"/> in the <resources> tag without any

Why can't I pack certain JARs outside WEB-INF

给你一囗甜甜゛ 提交于 2019-12-11 10:17:56
问题 I have read in several blogs that it is not advised (or not possible)to pack jars outside the WEB-INF folder. I am curious as to know why this is so.. For instatnce, mainStuff.war | |-->WEB-INF | | | |-->lib (having many jars, used by the contents of specificStuff.jar | |-->classes | |-->web.xml | |-->META-INF (having the .MF file and signed files .SF and .DSA) | | |-->index.jsp (consists of a jnlp xml, referring to the jars in lib) | | |-->specificStuff.jar (this is a separate jar module,

javaws : Java 7 update 45. Cannot send properties [duplicate]

限于喜欢 提交于 2019-12-11 09:48:02
问题 This question already has answers here : With Java 7 Update 45, the System Properties no Longer Set from JNLP Tag “Property” (5 answers) Closed 6 years ago . With the new Java 7 update 45, we are not able to set properties. We used to set it as follows <resources> ... <jar href="xxx.jar"/> <property name="xxx.xxx.xxx.xxx.userName" value="Batman"/> <property name="xxx.xxx.xxx.xxx.locale" value="en_US"/> ... </resources> We tried the work around, tried the following <resources> ... <jar href=