jnlp

Long startup delay for Java WebStart application since Java 1.7.0u40

一个人想着一个人 提交于 2019-11-29 16:50:44
问题 Since we installed Java 1.7.0u45 our WebStart application shows a major delay on startup on Windows systems (we haven't tried other platforms). Symptom is that after double clicking the application icon on the desktop the splash screen shows up quickly, stays for some time (as it did before) and closes. After this we have a delay of about 1 minute. Then, finally, the application window opens and everything works like a charm. Our application worked without problems up to Java 1.7.0u25. Java 1

Combination of Launch4J and Java Web Start?

元气小坏坏 提交于 2019-11-29 14:14:59
问题 I have a working JNLP application which I need to distribute to various non-technical end users. If the user's machine has a recent JVM installed, everything is fine. They just double-click the JNLP file I send them and Java Web Start does the rest. Now I would like to distribute something that works with or without a JVM, e.g. a .exe file that auto-downloads a compatible JVM if none is present, then invokes javaws.exe to download the .jar files and launch the application. Launch4J is the

Where can i download JNLP.jar

喜夏-厌秋 提交于 2019-11-29 13:36:49
How can i run the examples in the link ? Where can i get JNLP developer pack? Thanks Samrat C:\Program Files\Java\jdk1.6.0_27\sample\jnlp\servlet In other words, in the sample\jnlp\servlet dir of your JDK. You can also find the javax.jnlp.* classes in lib/javaws.jar under your JRE installation. Andrew Thompson The classes shown at the link are primarily of the JNLP API. It is automatically on the run-time class-path of apps launched using Java Web Start . As to how to add them to the compile-time class-path, see the tips in (the build files of) these demos . It's really hard to get there . The

How can I pass arbitrary system properties whose values may change to a signed Java RIA (applet, webstart) via JNLP?

孤者浪人 提交于 2019-11-29 11:41:33
Due to tighter security restrictions in 7u51 , due in January, I'm trying to sign my JNLP file. Our application requires certain custom system properties to be set, and the values of some of those properties are different depending on where the applet is being deployed. I would like to avoid having to re-sign the JAR containing the JNLP template for each deployment. The naive approach of putting <property name="my-prop" value="*"/> in the JNLP template does not work. Even with <property name="my-prop" value="fixed-value"/> in the template, I sometimes get a dialog saying "This application is

remote debugging a jnlp application with eclipse

为君一笑 提交于 2019-11-29 10:15:40
I'm debugging a jnlp application, and I used to be able to remote debug it through eclipse, but not anymore. the command to start it is: /usr/java/jdk1.6.0_14/jre/bin/java -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1445 -Djnlpx.heapsize=64m,512m -DtrustProxy=true -Xverify:remote -Djava.security.policy=/lib/security/javaws.policy -Dfile.encoding=UTF-8 -Xbootclasspath/a:/usr/java/jdk1.6.0_14/jre/lib/deploy.jar:/usr/java/jdk1.6.0_14/jre/lib/javaws.jar:/usr/java/jdk1.6.0_14/jre/lib/plugin.jar -classpath /usr/java/jdk1.6.0_14/jre/lib/deploy.jar com.sun.javaws.Main launch

Auto-Launch JNLP on click

那年仲夏 提交于 2019-11-29 09:14:38
How do I get a JNLP file to auto-launch on click? (as opposed to clicking save or open when clicked) Is this some type of MIME association that the browser must first recognize? There is a server configuration file that specifies MIME or content type by file extension. For JNLP, it should be application/x-java-jnlp-file . I think the other answer is outdated as of today. Try changing your link from http:// or https:// to jnlp:// or jnlps://. So your url would look something like this: jnlp://your.server/path/yourjnlp.jnlp Caveat: For me, typing this in the Chrome URL doesn't work. It needs to

url parameters in jnlp href attribute

人走茶凉 提交于 2019-11-29 07:53:56
I've been using url parameters to pass arguments to the main-method of the .jar application. After updating to latest jre 7u7 on windows 7, Java-web-start launcher crashes when launching the files. (JNLP download-servlet and jsp-page parses the url-parameters and inputs them in the argument further down) The interesting parts of the jsp <jnlp spec="6.0+" codebase="http://localhost:8080/" href="myfile.jnlp?username=charles"> ... <application-desc main-class="MyMain"> <argument><%=request.getParameter("username")%></argument> </application-desc> </jnlp> So this might or might not be a bug, Q1:

Can I delete downloaded JNLP file (Java web start/JWS) from Java application?

百般思念 提交于 2019-11-29 07:43:13
Google Chrome does not launch JNLP file automatically, so I recommend for our users this solution . It works but the downloaded JNLP file remains in download folder. Deleting them manually is troublesome. I want to add a function to our Java application: Google Chrome downloads a JNLP file and open it. The JNLP file starts our Java application. The Java application deletes the JNLP file (<= I want this function!) Can I get the file path of the downloaded JNLP file which started the Java application? Of cause, our Java application jar is signed and can access local resources. There is nothing

What's the difference between InputStream and ByteArrayInputStream?

和自甴很熟 提交于 2019-11-29 06:57:43
The following code is extracted from the java web start chapter of the core java volume 1. ByteArrayOutputStream out = new ByteArrayOutputStream(); PrintStream printOut = new PrintStream(out); printOut.print(panel.getText()); //panel.getText() return a String InputStream data = new ByteArrayInputStream(out.toByteArray()); FileSaveService service = (FileSaveService) ServiceManager .lookup("javax.jnlp.FileSaveService"); service.saveFileDialog(".", new String[] { "txt" }, data, "calc.txt"); There are four objects created ,the stream is redirected three times. Is there any other methods to write

How to use JNLP to pass command line arguments to the application?

我的未来我决定 提交于 2019-11-29 06:44:52
I have a JNLP package for my application. Now I have the need to pass command line arguments to my application. How do I extend my JNLP file to list the command line arguments? For instance, I need to say java main.class arg1 arg2 and the arg1 and arg2 need to be mentioned as part of JNLP file. Look to the description of the application-desc Element for further details of the argument element. The application element indicates that the JNLP file is launching an application (as opposed to an applet). .. Arguments can be specified to the application by including one or more nested argument