java-web-start

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

Java Web Start applications ask repeatedly for un-existing files

夙愿已清 提交于 2019-12-11 09:12:32
问题 All my application I make with NetBeans as a Java Web Start applications behave quite strangely. When I run them as a normal application, everything works. But when I compile them as java web start apps, they, after the java web start is done with loading, repeatedly ask server for libraries on the wrong place. It doesn't seem to matter in small projects, but it makes a huge time difference in large projects (see my first question). I put a simple NetBeans project here. It should paint a

Change Java temporary internet files storage location

本小妞迷上赌 提交于 2019-12-11 07:26:37
问题 I am trying to change the storage location of Java Web Start. I read that the location is changeable through the java control panel. I got there and I can see the path of my "temporary internet files" but the "change" button is gray. Why can't I change this path? I need to change it to another hard drive. 回答1: I googled it for you. This was my search phrase: java console change temporary location And this was the result that was most appropriate: How to change Cache location for Java on

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

Trouble to display deployJava button on ajax rerender

﹥>﹥吖頭↗ 提交于 2019-12-11 05:56:26
问题 I'm having trouble displaying the deploy-java button on ajax rerender <h:form id="deployJavaForm" rendered="#{myBean.shouldRender}"> <h:outputScript library="js" name="http://java.com/js/deployJava.js" target="head" /> <script type="text/javascript"> deployJava.createWebStartLaunchButton('blah.jnlp', '1.7.0'); </script> </h:form> when myBean.shouldRender == true and the form is updated the only thing being displayed (on a white page) is the deployJava-button and the request is left hanging.

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

Use Eclipse to run an existing Java web start application

爷,独闯天下 提交于 2019-12-11 04:45:39
问题 I can use Java web start to start my Swing GUI application on the command line: javaws http://localhost:7001/webstart/myapp/launch.jnlp How to run my application inside Eclipse 3.3.2 and jdk 6 with Java web start? Can I run my application inside Eclipse without Java web start? How? Clicking the launch.jnlp file inside Eclipse only open the text editor. The launch.jnlp file is as follows: <jnlp spec="1.0+" codebase="$$codebase" href="$$name"> <information> <title>${com.prod.my.myapp.common

GlassFish and Application Client Web Start: invalid Http response

南笙酒味 提交于 2019-12-11 03:39:21
问题 I've created Enterprise Application and Enterprise Application Client using this tutorial. Both are deployed to remote GlassFish server placed in my local network. When I try to run Application Client with Java Web Start javaws http://192.168.0.234:8080/ApplicationClient1 , I see an error in JWS window: java.io.IOException: Invalid Http response at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

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: <