java-web-start

Java Web Start - Does it work with Android?

浪尽此生 提交于 2019-12-07 06:14:10
问题 As the title says, is deploying/using applications through Java Web Start a viable option? I found a few posts online from years ago saying that the JavaME applications are only available. 回答1: No, it's not an option. Android has an Application Store (called Android Market) that serves a similar purpose: managing applications install, updates and versions... So, technically, you don't need JWS . 回答2: Why not just host the .APK file locally on your lan on a webserver and allow people to

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

JAXBException on creating JAXB Context

对着背影说爱祢 提交于 2019-12-07 02:07:42
问题 When I run application as standalone Java program, it works well. When I run it as an applet, it throws JAXBException with following stacktrace. javax.xml.bind.JAXBException: jaxb.properties in package com/test/package does not contain the javax.xml.bind.context.factory property. at javax.xml.bind.ContextFinder.find(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) When I add a jaxb.properties, i get the below

JXMapKit/-Viewer extremely slow as webstartable - where to start digging?

点点圈 提交于 2019-12-07 01:21:20
问题 Just tried to add some swingx-ws components to the overall swinglabs demos - and noticed that a simple JXMapKit/-Viewer is orders of magnitude slower to load the tiles in the webstartable compared to loading locally. Rather lost on where I should start looking (ui updates seem to be on the EDT, though might need a closer look): anybody else experiencing the different loading times? any guess on what might be the reason? how to debug a webstartable? The code is rather straightforward (to run

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

java webstart application startup time too slow

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 15:03:29
I have a java webstart application with many dependency jars(about 20), it starts up quickly in the development environment as a standalone app. However when it's deployed in java webstart, the start up time is slow(1 minute or so). Is there a way to improve the startup time? Try this if you are starting Java Web Start app from Windows XP or Windows 7. Go to java control panel. Under "General" tab open "Network Settings" and choose "Direct connection" instead of "Use browser settings". "User browser settings" is the default on fresh java install. When I was using java web start (I didn't look

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