jnlp

Change working dir in Java Webstart

心不动则不痛 提交于 2019-12-11 09:47:50
问题 Is there a way to change working dir for JVM when running Java Webstart? When i use system.setProperties("user.dir", newDir) it sets it(system.getProperties() shows it does) but ignores it. Is this a limitation in Java Webstart to always use the working dir where i started the jnlp file? I am using all permissions in the jnlp file. Please help! EDIT: Whatever i do now, my webstart always uses user.dir to save files. Frustrating! 回答1: I've had this question in the past myself, but I've always

Some libraries don't work when running JNLP file

ⅰ亾dé卋堺 提交于 2019-12-11 07:13:22
问题 Everything works in my Java EE project when I'm running it from Netbeans, but when I deploy it in Glassfish server and run downloaded JNLP file, some added libraries don't work. Any ideas? 回答1: Any library that your program needs that is not part of the standard Java SE distribution must be referenced in the JNLP file. Part of your JNLP file might be: <resources> <j2se version="1.6+"/> <jar href="serdarsProject.jar" main="true"/> <jar href="lib/activation.jar"/> <jar href="lib/mail.jar"/>

Signed applet w/ signed JNLP template produces java.lang.SecurityException

霸气de小男生 提交于 2019-12-11 05:59:33
问题 I'm signing the JNLP file used by my RIA, in preparation for the coming tighter security restrictions in 7u51 , due in January. The webstart version is working great, but I've run into a problem where the applet version fails to launch with the following exception. Google has apparently never heard of this exception. :( java.lang.SecurityException: JAR should not contain JNLP-INF/APPLICATION_TEMPLATE.JNLP at sun.plugin2.applet.Applet2ClassLoader.getPermissions(Unknown Source) at java.security

How to include jar dependencies in java webstart project

北城以北 提交于 2019-12-11 05:53:16
问题 We are trying to develop a printing application using java webstart. We created the jar as a normal jar file using eclipse. Our application needs external libraries for connecting to the database, converting the data to bytes etc. We were able to do this before by putting the necessary jars in the /ext/ directory of the jre folder. However this caused a library conflict with our tomcat server so we would like to avoid this approach. We also tried exporting the project as a runnable jar as the

value passing in java applet

只谈情不闲聊 提交于 2019-12-11 05:28:58
问题 i am passing value in java applet but value is coming there as null my javascript for applet deployment : <script src="javascript/deployJava.js"></script> <script> var attributes = { id:'dynamictreeapplet', code:'jstojava.com.vaannila.utility.dynamicTreeApplet.class',width:1000,height:1000} ; var parameters = {jnlp_href:'./appletjars/a.jnlp'} ; deployJava.runApplet(attributes, parameters, '1.6'); </script> My jnlp <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http:/

Hide “security warning message” in Java Control Panel

假装没事ソ 提交于 2019-12-11 04:28:31
问题 Am using applet for file downloading. I need to uncheckable few options in "java control panel" for to hide the "security waring messages" in browser(this is one time activity). But, Is there any possibility to hide the "security warning message" via java coding? Java Version: 1.7.0.25 Thanks for looking into this.. 回答1: Is there any possibility to hide the "security warning message" via java coding? No. If there was, it would be a bug. Depending on what warning is shown, it might be possible

Launch Runnable Jar from Web Start

萝らか妹 提交于 2019-12-11 03:30:07
问题 This is my first time trying to use Web Start, and I am trying to launch my runnable jar. I get the following error from my webpage as I click the link to launch the jar. Can anyone help me out? The Notepad example from the tutorial works fine from another link on the test page (JNLP and jar in same folder as I have too). The jar and jnlp are definitely in the same folder, yet the jar cannot be found. Thanks in advance. Folder Structure: /MyApp /MyApp/MyApp.jnlp /MyApp/MyApp.jar JNLP File: <

Same Java Fonts Slightly Different in Eclipse vs JNLP

一个人想着一个人 提交于 2019-12-11 02:56:09
问题 First of all, I don't really have any code, because it's a universal problem I'm seeing and am just wondering if anyone else has ever encountered it. As near as I can tell the eclipse and JNLP UI properties are identical...So, what I am seeing is that when assigning the exact same component - any component - the exact same font (I'm using Arial, Bold, 12 for everything) and the results in JNLP and Eclipse are slightly different, even when run on the exact same computer. Here's a screenshot

Query on Java Serialization

痞子三分冷 提交于 2019-12-11 02:54:41
问题 I am facing below issue, after adding new member methods in existing class Response implements Serializable{} . There is no explicit serial version id declared. On multiple try, am getting the same serial numbers. Error communicating with the webserver: com.abc.xyz.app.util.common.Response; local class incompatible: stream classdesc serialversionUID = -3900355805473150430, local class serialversionUID = -6706527232726476603 After going through some documentation, i tried modifying the class

Correctly signed JNLP application prevented from running in Java 7

一笑奈何 提交于 2019-12-11 01:54:28
问题 I have a JNLP application that needs to be updated due to a certificate expiry. I have a new certificate verified by a CA. I have imported the new certificate into my keystore - I have imported the full certificate chain. My build file signs and timestamps the jars in my build <signjar alias="myAlias" keystore="myKeystore" storepass="storepass" keypass="keypass" lazy="false" tsaurl="http://timestamp.globalsign.com/scripts/timestamp.dll"> <path> <fileset dir="${app.dist.dir}" includes="**/*