** Download Resource Error
The "Download Resource Error" may appear when using Java Web Start, and the approximate error message is as follows:
*********************************************************** *****
JNLPEXCEPTION [CATEGORY: Download Error: Exception: Java.io.IOException: Rename Failed in Cache: LaunchDesc: null] AT .....
*********************************************************** *****
This error is because every time you call Java Web Start, you will find the program to update the program and download the program to the cache directory under the local Java Web Start directory, if Cache
There is already the same name file, and the file is being used, then the newly downloaded file will have a rename failed error, and the local manual is deleted.
The file will also report: the file is being used! Here, Java
The SIGN mechanism in web start may mark each JAR file. Sometimes you see javaw.exe in the task manager, you can delete the local JAR file after termination, indicating This
Some local files may still keep the file lock! Sometimes even if all Java programs are killed even if you take the Task Manager
Still an error, you must log out of Windows, don't know if it is Java Web Start
It's your own problem.
** argument
If you need to deliver the parameters to the * .jar file, you can use the following code:
** jws console
Sometimes you need to see the information of the system.out.print statement in * .jar, you can open the JWS console, you can set it in the preferences in JWS Manager.
** Security
During the Java Web Start, the local file operation, access remote database, etc. are safe to limit, and if you want to implement these operations, it is generally
Add code in JNLP:
The above code represents all operations, but to achieve this, you need to perform SIGN operations on the * .jar file, which is a safe signature, which can be used.
The KEYTOOL and JARSIGNER tools in JDK are signed, steps are as follows:
** KeyTool
For example: keytool -genkey -alias myself -keypass 888888
'-alias means a pseudonym, to remember this pseudonym, followed by
'-Keypass Enter a password.
The keystore file is usually generated, and KeyTool has some other options to view help in Console.
** jarsigner
For example: jarsigner -alias myself ***. JAR
Jarsigner represents a visa to the JAR program. You can set the all-permissions properties only if the visa program can set. ** Root Certification
You can also choose Root certification in the preferences in JWS Manager.
** CERTIFICATE
The default of the RSA and DSA is used by default in Jarsigner. Some companies also want to buy the Certificate files themselves, but both ways should be running, generally running the Java Web Start program for the first time.
The dialog box will pop up to confirm whether the authentication is recognized.
** Last description
Because it is also a newbie to JWS, there are many problems just awareness. If there is an improper expression or understand the skin, please bear with me.