com.sun.deploy.net.cookie.GenericCookieHandler - Cookies in Java Update

Q

How to run "com.sun.deploy.net.cookie.GenericCookieHandler" program from JRE deploy.jar file?

✍: FYIcenter

A

"com.sun.deploy.net.cookie.GenericCookieHandler" allows you to prints cookies used to run the Java Control Panel and the update job.

"com.sun.deploy.net.cookie.GenericCookieHandler" program is stored in the lib\deploy.jar JAR file JRE 1, 2, 3, 4, 5, 6, 7, 8, 9 , 10 and 11.

You can run the "com.sun.deploy.net.cookie.GenericCookieHandler" program using the lib\deploy.jar JAR file as described below using JDK 11 as an example:

C:\fyicenter>set JRE_HOME=\fyicenter\jre-11.0.1

C:\fyicenter>%JRE_HOME%\bin\java -cp %JRE_HOME%\lib\deploy.jar com.sun.deploy.net.cookie.GenericCookieHandler

Client --> http://oracle.com/bar/index.html
Cookie    : null

Server --> http://oracle.com/bar/index.html
Set-Cookie: CUSTOMER_EXPIRED=WILE_E_COYOTE_EXPIRED; path=/; expires=Wednesday, 09-Nov-99 23:12:40 GMT
Set-Cookie: CUSTOMER_NOT_EXPIRED=WILE_E_COYOTE_NOT_EXPIRED; path=/; expires=Wednesday, 09-Nov-03 23:12:40 GMT
Set-Cookie: CUSTOMER_SECURE=WILE_E_COYOTE_SECURE; path=/; secure

Client --> http://oracle.com
Cookie    : null

Server --> http://oracle.com/xyz/bar/index.html
Set-Cookie: PART_NUMBER=ROCKET_LAUNCHER_0001; path=/

Client --> http://oracle.com
Cookie    : PART_NUMBER=ROCKET_LAUNCHER_0001
...

 

com.oracle.deploy.update.Updater - Update JRE

com.sun.deploy.panel.JreLocator - Locates Installed JRE

Tools Supported from JRE JAR Files

⇑⇑ FAQ for JDK (Java Development Kit)

2018-11-11, 295👍, 0💬