jnlp

Netbeans JNLP Webstart error

瘦欲@ 提交于 2019-12-07 09:39:51
问题 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

JNLP get a permission

风格不统一 提交于 2019-12-07 04:47:06
问题 I recently stumbled across a problem when starting my application via JNLP. I now narrowed it down to a java.security.AccessControlException , which denies me to shut down my ExecuterService . So, I did some reading and found out that I'll need the permission ( modifyThread ) to successfully shut down the service. I also found out that I should use the <security> -tag (in the JNLP-file) to request it, but I'm a little confused about how. The documentation of the tag says: [...] If the all

Java Webstart with Tibco Native Libs

流过昼夜 提交于 2019-12-07 03:30:39
问题 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

Write to a local file through JNLP

。_饼干妹妹 提交于 2019-12-07 02:24:31
I have a specific requirement to read a resource from jar file and then write it to local disk. But when I try to write that resource to local disk an exception: java.io.FilePermission (write) is raised. I have my jar signed. I have also tried the following solution but it does not work either. AccessController.doPrivileged(new PrivilegedAction() Nothing seems to work. Am I missing a step after signing jar because this is the most common solution available everywhere? How can I write to a local file without using policy files (because that can't be done on each client machine)? The JNLP also

weird behavior when loading jar inside a jar in Java Web Start

本秂侑毒 提交于 2019-12-06 19:43:26
Hell All, So I have been facing this behavior for quite some time and I am sure some else has also faced it and know the solution. I am exporting my application jar as a runnable jar using eclipse and obviously this application have many other jar and so I am exporting with option packed other jar inside the main jar. The problem is when I am starting my application it is not loading the file from db2jcc.jar and few other jar but If I deploy db2jcc.jar as separate jar application running fine. All I want to keep my jnlp file and signing of jar process as simple as possible, that is why I am

JavaFX won't load on my webpage

亡梦爱人 提交于 2019-12-06 15:31:39
I realize this is a very vague question, so I'm not looking for specifics, just suggestions... I wrote a JavaFX application in NetBeans, which automagically builds it into a jar, jnlp, and html page. After uploading these files onto my webserver, I can navigate to the page and everything works, on the computer I developed it on . On any other computer, it just hangs at the loading screen (spinning animation). Things I've tried: Made sure these computers have most up to date JRE Tried it in both Chrome and IE Set all files to RWX permissions for all users (I have since undone this) Any ideas?

Use GAE servlet to serve dynamic JNLP and jar for JavaWS

我与影子孤独终老i 提交于 2019-12-06 14:49:54
I encourtered several problems when I try to distribute jar/jnlp dynamically. All my files are dynamically served using http://www.mywebsite.com/ServeFile?name=xxx for file xxx. I can download files correctly. When I put the link to jnlp in the browser and download, there is an error from javaws showing that the jar file was not found. The GAE log file shows that the javaws tried to load /ServeFile.pack.gz?name=test__V1.0.jar so it wasn't served by the ServeFile servlet, instead it was served by / (which is another servlet) Here is my jnlp file partial content: <resources> <j2se version="1.6+"

Java 9 webstart JNLP Service produces IllegalAccess

假装没事ソ 提交于 2019-12-06 13:57:54
问题 The following code (to retrieve the base URL of a Java Web Start client application via the JNLP API) worked in Java 8 but failed when executed in (modularized) Java 9 runtime: Class<?> mclass = Class.forName("javax.jnlp.ServiceManager"); Method lookup = mclass.getMethod("lookup", new Class[]{String.class}); Object basicSvc = lookup.invoke(null, new Object[{"javax.jnlp.BasicService"}); Class<?> sclass = basicSvc.getClass(); Method getCodeBase = sclass.getMethod("getCodeBase", (Class[])null);

Migrating Java Applet to Java WebStart (JNLP)

半世苍凉 提交于 2019-12-06 13:39:20
问题 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

Where to put application data and temp files on Windows, Linux and MAC if java-application is being lauched using JWS

♀尐吖头ヾ 提交于 2019-12-06 13:27:23
Can we allow user to set and save application data and temp data using Java-Application that has beenrun/launch using JWS ? Does it make sense ? We would like to know if user run JNLP directly then can user save preferences settings on local so when he/she run again JNLP he/she could find his/her last saved settings again. Where to put application data i.e configuration files, properties file. user download path etc.. and where to put temp files i.e.. logs etc.. on Windows, Linux and MAC if java-application is being launched using JWS ? trashgod I often use java.util.prefs.Preferences , but