Your java it out of date

Dialog “Your Java version is out of date”

Problem

Your java it out of date
Your Java version is out of date
  • If you start a Java application on Windows this dialog shows up
  • Especially on servers this can be annoying, because it prevents the start of the application
  • You want to get rid of this dialog
  • (But you should update Java periodically)

Solution

1. Create the following path:

C:\Windows\Sun\Java\Deployment

2. Create in this path a file named Deployment.config

3. Paste the following content

deployment.system.config=file\:C\:/Windows/Sun/Java/Deployment/deployment.properties
deployment.system.config.mandatory=true

deployment.system.config.mandatory forces java to load the property file set in deployment.system.config.

4. Create the file deployment.properties

5. Paste the following content

deployment.javaws.autodownload=never
deployment.javaws.autodownload.locked
deployment.expiration.check.enabled=false
deployment.expiration.check.enabled.locked
deployment.expiration.decision=never
deployment.expiration.decision.locked
deployment.expiration.decision.suppression=true
deployment.expiration.decision.suppression.locked

You will find description of the parameter here.

deployment.expiration.check.enabled is set to “false” to suppress the prompt. deployment.expiration.check.enabled.locked will lock the value, so a non root user cannot change it.

Optional:

  • deployment.javaws.autodownload – Prevent autodownloadin in java web start
  • deployment.expiration.decision – Remember the decision and suppress them

Fin

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s