java-web-start

How to allow running only one instance of a Java program at a time?

╄→гoц情女王★ 提交于 2019-11-27 11:22:42
I need to prevent users from starting my Java application (WebStart Swing app) multiple times. So if the application is already running it shouldn't be possible to start it again or show a warning / be closed again. Is there some convenient way to achieve this? I thought about blocking a port or write sth to a file. But hopefully you can access some system properties or the JVM? btw. target platform is Windows XP with Java 1.5 I think your suggestion of opening a port to listen when you start your application is the best idea. It's very easy to do and you don't need to worry about cleaning it

Disabled Java warning appearance & affect on Java Web Start apps

社会主义新天地 提交于 2019-11-27 09:51:23
Recently security vulnerabilities were discovered in the Java Plug-In 1 . As a protection for the end user, Java in most browsers was disabled promptly. What do the 'Java disabled' warnings look like? Does the blocking of applets also affect Java Web Start apps. (they are launched from a link in a web page) aimed at desktop use? Security vulnerability in the Oracle Java Plug-In. For more details see: The JRE 1.7 Vulnerability Q&A at SO. Oracle Security Alert for CVE-2013-0422 The Java™ SE Development Kit 7, Update 11 (JDK 7u11) release notes - the version in which the vulnerability was fixed.

How do you clear the Java Console? [duplicate]

随声附和 提交于 2019-11-27 08:04:46
问题 This question already has answers here : Java: Clear the console (11 answers) Closed 3 years ago . I have output messages displayed on the Java console for an application that started using webstart. Instead of the user manually clearing message, is there a way of clearing console messages in code? These messages are printed at the rate of about 1000 per second and seem to end up using too much memory, i could have stopped the printing to console, but the requirement is to always have it. 回答1

Java Webstart: howto share certificate with users

你。 提交于 2019-11-27 07:12:29
问题 I developed an application that uses Java Webstart. It needs write access to the disk so it has to be signed, but it would only be used by a limited group of users so I don't want to pay for a trusted certificate. What is the easiest option to let the users trust my application/self signed certificate? I don't want them to use keytool because it is not really user friendly. I though about creating a certificate that can be imported via the Java Control Panel and first tried creating an

Java 8u40 on OS X Yosemite

五迷三道 提交于 2019-11-27 06:20:15
问题 Since the update of Java 8u40 our OSX users have not been able to type anything into the application and the application also does not even gain focus. I have tried other Web Start examples and I have the same issue, so it isn’t just us. I went to http://docs.oracle.com/javase/tutorial/deployment/webstart/examplesIndex.html and launched both Web Start demo’s on that page. I can double-click in the fields and it appears it wants to rename or edit text but the caret doesn’t show up and typing

Launch webstart without downloading…?

左心房为你撑大大i 提交于 2019-11-27 05:53:31
问题 I have made a Java webstart application, and created an HTML page with the link to launch it. The problem is, in Google Chrome, there is no option to just 'Open' a file without saving it. I want to make an HTML page that can automatically launch a JNLP file without having to save it. Or rather, without the user having to open their file explorer to launch it) Is this possible? 回答1: Launch the JNLP using an embedded applet deployed using web start. Start with a Swing based JApplet that accepts

I am not able launch JNLP applications using “Java Web Start”?

霸气de小男生 提交于 2019-11-27 04:36:23
问题 Up until recently, I was able to launch/open JNLP files in Firefox using Java web start . Don't know what happened all of a sudden JNLP files stopped launching, a splash screen appears saying Java Starting... and then nothing happens. Even the Java Console in the browser and javacpl.cpl applet doesn't open. Tried all possibilities: removed all older version and installed the latest JRE (java version "1.6.0_17"), still it doesn't work. Done some googling for this problem, people suggested to

With Java 7 Update 45, the System Properties no Longer Set from JNLP Tag “Property”

人盡茶涼 提交于 2019-11-27 04:14:06
We run the application from the attached JNLP. On the Java console, we have output the system properties with D. The properties from our JNLP files are not set any more. This is the first Java version that we get this sort of problems with. Everything was working fine up to and including 7 Update 40. We have all the jars signed but there are no security attributes in their manifests. <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://10.0.10.230/webstart/app" href="desktop.jnlp"> <information> <title>MyApp Desktop</title> <vendor>MyApp GmbH</vendor> <homepage href="http:

Webstart runs with wrong version of JRE

旧时模样 提交于 2019-11-27 03:18:39
问题 I have a Java webstart application that requires Java 7+, so the JNLP has this line: <j2se version="1.7+" href="http://java.sun.com/products/autodl/j2se"/> This works on various Windows XP & Windows 7 machines (most of them also having Java 6 installed) but on one of them, webstart is launched with Java 6 and fails (wrong version of JRE). I found this post and checked the Java settings and they look fine: I have also tried changing the JNLP line to this but it still does not work: <j2se

Pass dynamic params via JNLP

二次信任 提交于 2019-11-27 02:21:54
问题 I am using JavaScript in order to execute JNLP which in the end will execute my client. I am trying to pass parameters via JavaScript execution to the JNLP and having those parameters via JNLP inside my client. The JavaScript is executing this URL for instance: http://localhost:8080/MyJnlp.jnlp?login=14hhh765p&pass=ggyyktff Now my JNLP will try to get the parameters in the <application-desc name tag this way: <application-desc name="..." main-class="com.main.execute" > <argument>-nosplash<