jnlp

Troubleshooting a Java Web Start application and accessing log files

点点圈 提交于 2019-11-27 21:17:54
问题 I am launching a Java Web Start application which shuts down abruptly. Does anybody know how to access the logs for Java Web Start. Are there any known reasons for it to shut down abruptly? 回答1: You should enable detailed trace logging as explained on this page. The same page gives you the location of the log files; The trace file is saved into the log directory in the "Java Deployment Home" folder. That folder's location is specific to your operating system: Windows XP: %HOME%\Application

How to sign (dynamic) JNLP files for OSX and Gatekeeper

纵然是瞬间 提交于 2019-11-27 20:07:16
My company produces Java Applications for Servers and delivers JNLP files to start local Applications. Since OSX 10.8.4 it is required to sign JNLP files with a Developer ID to keep Gatekeeper happy (it's actually in the release notes at the very bottom). The question is: how to accomplish this? AFAIK you can sign Apps (we have some Java Apps signed with Developer IDs) - but JNLP - Files are just that: files. Next: how to do this with generated JNLP files. We have to modify them as they come from a server - e.g. properties, base URL and so forth. AFAIK Java has a certain mechanism to say JNLP

Missing Codebase manifest attribute for:xxx.jar

寵の児 提交于 2019-11-27 19:45:20
When I launch application from jnlp I receive message " Missing Codebase manifest attribute for:xxx.jar " what does it means? Peter Just encountered this, too, when running an internal application after updating my JRE to 1.7u25. The warnings appear because of a new security feature introduced in 1.7u25 to prevent unauthorized code reuse. In my case, I was also presented with a dialog asking me to confirm that I wanted the application to have access to my PC. If you have access to the jar file, add two attributes to it: Permissions and Codebase . You need to decide if the application requires

invalid SHA1 signature file digest

这一生的挚爱 提交于 2019-11-27 14:38:34
问题 I have been trying to verify the Jar signing: jarsigner -verify -verbose -certs example.jar I got the following problem: jarsigner: java.lang.SecurityException: invalid SHA1 signature file digest for o rg/apache/log4j/net/DefaultEvaluator.class I got some suggestions about using -digestalg SHA-1 but I do not know where I should put this statement! I hope you can help me to fix the problem. 回答1: This error can also happen when the jar is signed twice. The solution was to 'unsign' the jar by

Java 7u51 will not accept JNLP with self-signed certificate?

旧城冷巷雨未停 提交于 2019-11-27 11:53:58
I read on the web that Java version 7u51 (to be released in January 2014) will no longer accept Java Webstart applications that are self-signed by me. Is that true? In case it is true, do I have any chance to build a workaround for my JNLP application, so that I am able to start the application even after January 2014? I have seen that the option to suppress the security warnings because of the usage of a self-signed certificate was removed in 7u40. Matt McHenry Yes, this is true. This blog entry from Oracle has the details. As I understand it, you have three options for continuing to work:

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

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

getResourceAsStream returning null

江枫思渺然 提交于 2019-11-27 07:26:58
问题 I've seen many other people ask this question here and here, but it seems that I have done everything necessary yet I still get null when using the getResourceAsStream() call. In netbeans I dragged my image into my package and it shows up in the folder in which the source code and .class files are held. So I have: src\com\myProject\ClassIMakeTheCallFrom.java src\com\myProject\MyImage.png also a similar structure exists in: build\classes\com\myProject\ClassIMakeTheCallFrom.class build\classes

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