java-web-start

Java Web Start Application can read files from local systems, but not write [closed]

青春壹個敷衍的年華 提交于 2019-12-06 10:02:53
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 months ago . please ask if you need more info. I have the security and all permissions tags in my jnlp, and when I run my java app offline it works correctly. File T = new File(System.getProperty("user.home") + File.separator + ".myapp/");<br /> if(!T.exists()) T.mkdirs(); File[] temp=new File[2]; temp[0] = new File(System.getProperty("user.home") + File.separator + ".myapp"+File.separator+"temp1.txt"); temp[1] = new File

How to set preferIPv4Stack property for JNLP app?

谁都会走 提交于 2019-12-06 07:40:29
I need to set java.net.preferIPv4Stack=true to an app started via JNLP (javaws and applet) Tried those, without luck... <j2se ...java-vm-args="-Djava.net.preferIPv4Stack=true" /> <property name="java.net.preferIPv4Stack" value="true"/> System.setProperty("java.net.preferIPv4Stack", "true"); The only way i could make it work was seeting when launching javaws from local filesystem: javaws -J-Djava.net.preferIPv4Stack=true myapp.jnlp What is not possible on a applet or URL. How should i set this property? With the Java 7 Update 6 (b17) the list of secure properties has been updated. See Bug

Codebase attribute in manifest mismatch when testing local

五迷三道 提交于 2019-12-06 05:16:15
As per Java 1.7u25 you should add the Codebase attribute to your manifest and I have done that. But now I can't test it locally as the the attribute value does not match my local JNLP, generated by Netbeans, wich have no codebase value. What value should the manifest have for its Codebase and/or what do I have as codebase in my jnlp for it to work locally? There's a few ways to approach this: Use multiple codebase attributes: You can supply multiple values to the Codebase attributes, thus allowing you to add local addresses as well. e.g: Codebase: myproductiondomain.com localhost 127.0.0.1 Use

javaws missing in Java 8 for Solaris

可紊 提交于 2019-12-06 03:59:09
It looks like Oracle removed Java Web Start from Java 8 for Solaris. javaws isn't available anymore in Java 8u51. From the compatibility guide : The 64-bit binaries do not contain deployment tools such as Java Web Start and Java Plug-in, therefore desktop integration is no longer required. What do they mean with " required "? It's not possible anymore. It's not possible to launch a Web Start application on Solaris with Java 8. Does anyone know an alternate way (standard, no 3rd party stuff) to start a Web Start application on Solaris with Java 8? The "required" means that, as the build for the

How can i deliver jetty with many webapps via jnlp?

与世无争的帅哥 提交于 2019-12-06 03:46:43
i have a webapp ( http://sourceforge.net/projects/sf-mvn-plugins/files/m2-repo/net/sf/maven/plugins/example-captaincasa-jnlp/0.1-SNAPSHOT/example-captaincasa-jnlp-0.1-SNAPSHOT.war/download ) wich use jsf in a servlet container. This works fine with jetty-maven-plugin run-war target at my local pc. In the future i would like make more of this kind of weapps. Now i am looking for a way to deliver this webapps with jetty via jnlp. The end user should be have a zero installation but the webapps needs servlet container and my hoster does not support a servlet container or application server or so

What's with the new JNLP Missing items warnings in Java 7?

我们两清 提交于 2019-12-06 03:45:20
问题 My JNLP still works fine after our switch from Java 6 to Java 7, but it now throws a whole series of errors like this: Missing Application-Name: manifest attribute for: http://blah.com/app.jar Missing Permissions manifest attribute for: http://blah.com/app.jar Missing Codebase manifest attribute for: http://blah.com/app.jar It repeats several times for our main jar and a couple times for one of our library jars. However, it does not occur at all for the bulk of our library jars. JaNeLa lists

Java Web Start causing slow execution

≡放荡痞女 提交于 2019-12-06 03:37:16
I have an application that I'm deploying with Java Web Start. When I was doing unit testing, I noticed a slight problem: whenever my application is run with Java Web Start, a particular operation takes a long time to execute. When run locally, however, it is quite fast. The particular operation I'm talking about is reading in a large (5k row) Excel file to parse it. This is the line of code: Workbook wb = WorkbookFactory.create(new FileInputStream(new File(inputFile.getText()))); To figure out the problem, I added a way to record the time: long time1 = System.currentTimeMillis(); Workbook wb =

Dynamically load additional jar files using Web Start / JNLP

可紊 提交于 2019-12-06 01:52:18
问题 The Web Start Developers Guide states All application resources must be retrieved from the JAR files specified in the resources section of the JNLP file, or retrieved explicitly using an HTTP request to the Web server. Storing resources in JAR files is recommended, since they will be cached on the local machine by Java Web Start. Now, I have some resources I want to dynamically load after my application has been started (for example OSGi bundles). I can do this using plain HTTP, but I would

How to communicate between browser and Java Web Start applet

感情迁移 提交于 2019-12-06 01:29:56
问题 Current situation We currently use an applet to perform some operations, after which it redirects the current page. In its core, you could see the applet as the following: public class ExampleApplet extends Applet { @Override public void init() { Button redirect = new Button("Redirect"); this.add(redirect); final String target = this.getParameter("targetPage"); redirect.addActionListener((ActionEvent e) -> { try { getAppletContext().showDocument(new URL(target), "_parent"); } catch

How to pass the Java 9 '--permit-illegal-access' flag to a Webstart application?

隐身守侯 提交于 2019-12-05 23:08:17
问题 I got my application running with JRE build 9-ea+163 by passing the --permit-illegal-access flag to the VM. Now I want to start the app with Java Webstart. A first try with javaws -J--permit-illegal-access <JNLP-Url> does not work. I get the same InaccessibleObjectException with module java.base does not "opens java.util" to unnamed module as without the flag. Adding <j2se java-vm-args="--permit-illegal-access" version="9*"/> to the JNLP does not help. Does Webstart support the --permit