jnlp

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

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

package javax.jnlp is declared in module java.jnlp, which is not in the module graph

…衆ロ難τιáo~ 提交于 2019-12-01 03:35:35
I have a project that uses Java webstart technology. I decided to upgrade the Java version from 8 to 9. However, I faced the following error on compiling: error: package javax.jnlp is not visible import javax.jnlp.DownloadServiceListener; ^ (package javax.jnlp is declared in module java.jnlp, which is not in the module graph) I tried to include C:\Program Files\Java\jdk-9\lib\javaws.jar to the classpath, but still the same issue remains. It looks like java.jnlp is not resolved by default for code on the class path (much like Java EE modules ). The solution is to add it explicitly with --add

Enabling JVM options with Java Web Start / JNLP

佐手、 提交于 2019-12-01 03:34:23
I'm creating a Web Start application which would benefit from some of the newer JVM options (especially escape analysis, G1 garbage collector etc.) At the same time, I would like the application to work gracefully on older JVMs that do not support these options. Is there a good way of achieving this? David J. Liszewski As Thorbjørn mentioned, Java 6 u10 allows multiple j2se elements in JNLP. The JNLP File Syntax resources section of the latest Java Web Start Developer's Guide , indicates that multiple j2se elements, each with java-vm-args attributes can be specified with the most preferred

Enabling JVM options with Java Web Start / JNLP

一世执手 提交于 2019-11-30 23:58:28
问题 I'm creating a Web Start application which would benefit from some of the newer JVM options (especially escape analysis, G1 garbage collector etc.) At the same time, I would like the application to work gracefully on older JVMs that do not support these options. Is there a good way of achieving this? 回答1: As Thorbjørn mentioned, Java 6 u10 allows multiple j2se elements in JNLP. The JNLP File Syntax resources section of the latest Java Web Start Developer's Guide , indicates that multiple j2se

Java Web Start NumberFormatException while running Jar application

自古美人都是妖i 提交于 2019-11-30 22:14:10
While trying to run Jar application using JWS (JNLP) launch. It has been giving me this error. Can't even find where is the mistake. Any directions would help. If someone could tell me where is the potential location of this error, I could find post that code here. java.lang.NumberFormatException: For input string: "\Tools_Dev\TestApp\dist" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at com.sun.deploy.security.DeployManifestChecker.verifyCodebaseEx(Unknown Source) at com.sun.deploy

Java Web Start NumberFormatException while running Jar application

删除回忆录丶 提交于 2019-11-30 17:46:43
问题 While trying to run Jar application using JWS (JNLP) launch. It has been giving me this error. Can't even find where is the mistake. Any directions would help. If someone could tell me where is the potential location of this error, I could find post that code here. java.lang.NumberFormatException: For input string: "\Tools_Dev\TestApp\dist" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown

All possible values os.arch in 32bit JRE and in 64bit Jre

萝らか妹 提交于 2019-11-30 16:53:43
I need latest compilation of all possible values of the os.arch property in JRE 1.6 on Linux,Solaris and Windows. If possible please Quote the source of your findings. I need this values to select resources in my JNLP file. Basically I need to assign different JVM memory based on whether the JRE is 32bit or 64bit. Waiting for your answer. Thanks The best place where you can look for this it's in the own jdk. Looking on java.lang.System you can see that the properties are initialized in initializeSystemClass method using initProperties method which relies on native code using JNI : private

Force VM to launch in 32-bit mode WebStart JNLP

时间秒杀一切 提交于 2019-11-30 15:11:52
I am running a Java 32-bit app on Mac OS X Leopard via Web Start. I need to make sure the VM loads in 32-bit mode. How can I do this in the JNLP? I found the answer right after I posted. In the "resources" tag you can do a line like below. The "-d32" will force the 32-bit VM load: <j2se version="1.5+" java-vm-args="-d32" href="http://java.sun.com/products/autodl/j2se"/> 来源: https://stackoverflow.com/questions/1478139/force-vm-to-launch-in-32-bit-mode-webstart-jnlp