java-web-start

Java Webstart with parameters

╄→гoц情女王★ 提交于 2019-11-30 18:04:12
Can I launch a Java WebStart application with a set of parameters just like an applet is configured with the <param> tags ? Thanks Yeah you can, the following shows an example: <application-desc main-class="my.main.class"> <argument>-user=bob</argument> <argument>-pass=8jkaiuasu</argument> </application> Showing you passing the arguments "-user=bob" and "-pass=8jkaiuasu" to the application. Arguments are picked up in the standard way. Yes, check out the JNLP Tag reference 来源: https://stackoverflow.com/questions/1199211/java-webstart-with-parameters

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

Java Webstart with parameters

冷暖自知 提交于 2019-11-30 16:51:47
问题 Can I launch a Java WebStart application with a set of parameters just like an applet is configured with the <param> tags ? Thanks 回答1: Yeah you can, the following shows an example: <application-desc main-class="my.main.class"> <argument>-user=bob</argument> <argument>-pass=8jkaiuasu</argument> </application> Showing you passing the arguments "-user=bob" and "-pass=8jkaiuasu" to the application. Arguments are picked up in the standard way. 回答2: Yes, check out the JNLP Tag reference 来源: https:

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

Copy all created & third-party jars into a single folder with Gradle

会有一股神秘感。 提交于 2019-11-30 14:07:15
we have a multi-project gradle setup with one Java jar for each subproject: - root-project |-sub-project-a |-sub-project-b |-sub-project-c Now, because we are creating a Java webstart application, we need to sign all project jars as well as all third-party libraries (dependencies). My approach was now to copy all built subproject jars and all third-party libraries into a seperate folder and execute a task for signing them. However I am not able to copy the jars. This was my approach in the root build.gradle: task copyFiles(type: Copy, dependsOn: subprojects.jar) { from configurations.runtime

Long startup delay for Java WebStart application since Java 1.7.0u40

旧街凉风 提交于 2019-11-30 11:33:48
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.7.0u40 was the first version where the problem showed up. Our app is constructed from a single

How to learn game development? [closed]

瘦欲@ 提交于 2019-11-30 10:27:20
I've been a web programmer for a while and I can also program in Java. I have an idea for a small, multiplayer RPG game that I want to work on. It will be played through a java applet in the user's web browser. I have written the design document and specifications of the gameplay. What I'd like to know now is how I can develop the game? I've worked only with windows-like business apps in the past, with built-in widgets for textboxes, dropdowns, etc. With game programming it seems that I would have to build my own widget/controls for the UI of the game. These are the specific questions I have

Java Plug-In launch changes in response to the recent security vulnerability

孤街浪徒 提交于 2019-11-30 09:28:19
问题 How has Oracle changed the Java Plug-In launch experience for the user, in response to the recent security vulnerability? Details The JRE 1.7 Vulnerability Q&A at SO. Oracle Security Alert for CVE-2013-0422 Disabled Java warning appearance & affect on Java Web Start apps 回答1: Short answer All applets, trusted or sand-boxed, are now prompted (the user is asked permission) before loading. Long answer Here I am testing using Oracle's own Test Java applet. It was chosen on the basis that it is

Java - How to get permission in Java Web Start

霸气de小男生 提交于 2019-11-30 09:05:12
问题 Hi managed to create the jar and .jnlp files for my Java application but running into trouble when it runs. Launches okay with Java Web Start but I think I need to do something extra as normally when I run it it doesn't ask for permission to access the HD for file I/O. Would appreciate some help and advise to know what to do to get the permission rights i.e. what do I have to do is it something I have to do to all my classes not sure. The error message I get in Java Web Start is as below.

Why is Java 7 requesting network permissions for a signed application?

丶灬走出姿态 提交于 2019-11-30 08:27:21
问题 Since Java 7 Update 5 my Java Web Start application is requesting the permission to establish connections. The application is signed with a valid certificate. A popup is displayed with the following text: The application has requested permission to establish connections to www.example.com. Do you want to allow this action? [OK] [Cancel] On rejecting the request I get this trace on the console: Uncaught error fetching image: java.lang.SecurityException at java.lang.SecurityManager