java-web-start

How to pass 'unsafe' arguments to the JVM of a Java Webstart application

断了今生、忘了曾经 提交于 2019-12-01 09:57:15
问题 My Java Webstart application runs in a controlled trusted environment. This is a closed internal network where I have some control on how the application is started. How can I pass JVM arguments to the application, even if they are considered 'unsecure' for use by webstart by the JVM? 回答1: There are several options to pass JVM arguments to webstart. Through JNLP file. Through the JAVA_TOOL_OPTIONS environment variable. Through the deployment settings on the local computer. Through the javaws

Java Web Start keeps asking to authenticate

杀马特。学长 韩版系。学妹 提交于 2019-12-01 08:01:42
I developed a Java Web Start app that lies on a web server based on HTTP security. Once I log in to the web-page for launching my Java Web Start application, the app is asking me again to authenticate, and even if I tick the "save this password to the password list" it is prompting again this authentication dialog. If I am not wrong, this is because it's trying to access the other jars. I was wondering if there is a way for defining or passing the authentication username and password automatically to get rid of this annoying "feature" Thanks for your help No. You must authenticate to the

Java Web Start “Cannot find cached resource for URL”

自闭症网瘾萝莉.ら 提交于 2019-12-01 07:37:00
Under Windows 7 and 8 with JRE 7 update 21 (32-bit in both cases), I encounter the error Cannot find cached resource for URL yyyyyyyyyyy.jar for a JWS application that worked in JREs prior to update 21. If I try to download yyyyyyyyyy.jar by putting it into the browser, it works fine. It is the "main" jar file in my JNLP file. The actual problem is probably down to your web server sending the HTTP header "Cache-Control" with the value "no-store" to avoid caching. However, by specifying "no-store" it means JWS is unable to store the resources specified in your JNLP file. To avoid this problem

Java webstart max-heap-size causes JVM cannot be started

孤者浪人 提交于 2019-12-01 06:34:26
We use java webstart on the client side for a java swing based aplication. Recently we have been experiencing a weird "Cannot start java Virtual machine " error when clicking in the jnlp link. We soon find out its because the max-heap-size setting in the jnlp file was set to 1024m whereas most of the clients PC only have 1 gb physical memory. Set the max-heap-size back to 512m solved the problem. Currently, the relevant line in the jnlp file looks like <j2se version="1.5+" initial-heap-size="100m" max-heap-size="512m"/> I looked into the jnlp spec, but cannot find anything related to the "Java

Java Web Start keeps asking to authenticate

蓝咒 提交于 2019-12-01 06:16:32
问题 I developed a Java Web Start app that lies on a web server based on HTTP security. Once I log in to the web-page for launching my Java Web Start application, the app is asking me again to authenticate, and even if I tick the "save this password to the password list" it is prompting again this authentication dialog. If I am not wrong, this is because it's trying to access the other jars. I was wondering if there is a way for defining or passing the authentication username and password

Java webstart max-heap-size causes JVM cannot be started

狂风中的少年 提交于 2019-12-01 05:34:31
问题 We use java webstart on the client side for a java swing based aplication. Recently we have been experiencing a weird "Cannot start java Virtual machine " error when clicking in the jnlp link. We soon find out its because the max-heap-size setting in the jnlp file was set to 1024m whereas most of the clients PC only have 1 gb physical memory. Set the max-heap-size back to 512m solved the problem. Currently, the relevant line in the jnlp file looks like <j2se version="1.5+" initial-heap-size=

Java Web Start “Cannot find cached resource for URL”

帅比萌擦擦* 提交于 2019-12-01 05:25:48
问题 Under Windows 7 and 8 with JRE 7 update 21 (32-bit in both cases), I encounter the error Cannot find cached resource for URL yyyyyyyyyyy.jar for a JWS application that worked in JREs prior to update 21. If I try to download yyyyyyyyyy.jar by putting it into the browser, it works fine. It is the "main" jar file in my JNLP file. 回答1: The actual problem is probably down to your web server sending the HTTP header "Cache-Control" with the value "no-store" to avoid caching. However, by specifying

Are javaws exit codes really broken?

有些话、适合烂在心里 提交于 2019-12-01 05:14:07
I was working to automate same java code execution using JNLP and I was surprised to discover that jawaws did not gave me a valid return code. Original execution line was: javaws -wait http://example.com:666/missing.jnlp This did showed an ugly window with "Unable to launch application." message. As you can image I tried to make this not require a GUI and tried: javaws -wait -Xnosplash -import -silent http://example.com:666/missing.jnlp But even if this command fails, it will still return 0 , success. How to solve this? This is Bug ID 6898437 in the Oracle/Sun bug tracker, and is fixed in more

Swing Application stuck following Apple Java update 1.6.0_51

℡╲_俬逩灬. 提交于 2019-12-01 04:38:37
问题 We have a Java Swing client application. It's installed as a Java Web Start applet and as a install4j installer. Since Apple released the latest Java 6 upgrade our application gets stuck immediately after Login Dialog is displayed on both Installer and Web Start versions. We disabled the dialog, the application still got stuck immediately after the start. We also tried to use different Look&Feels, as there are some reports that this fixes the issue, it didn't help. We currently suspect that

webstart application logging permission denied

无人久伴 提交于 2019-12-01 04:32:15
问题 is it possible to use java.util.Logging and log to a file in a java webstart application? I have the following logging code: Handler fh = new FileHandler("myapp.log"); Logger.getLogger(MyApp.class.getName()).addHandler(fh); and got the following exception: java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at