Java Proxy Settings

Just been trying to work out why some Java applets have not been able to run on the network. We use a proxy server and the settings are deployed to each user (different settings per user), in the form of a PAC file which cannot be changed.

It appears that Java cannot handle the PAC file, because if I go into the Java applet in Control Panel, and set the PAC file in there, it all works.

Having found this, I thought that an easy fix would be to find the setting in the registry, create a custom ADM file and deploy using Group Policy.

It turns out though, that the settings for Java are not stored in the registry. There is a deployment.properties file.

This file, as far as I can tell, is a per-user file that is stored in the following location.

%userprofile%\Application Data\Sun\Java\Deployment

You can edit the file in notepad and see the settings that you have specified in the Control Panel applet.

From this I have included the copying of the file to the local user location as part of the logon script. Makes sure that everyone is using the same settings. Would love to hear if anyone has any better ways of getting this file out.

2 people found this post useful.


2 thoughts on “Java Proxy Settings

  1. I have proxy file i need to use tht in my java application do u knw how can i achive it ??

    1. Do you mean that you want to apply a proxy file only to a single Java application?

      If so, I don’t think that there is a way that you can do that. The only solution that I can think of is to have an If Else statement in your proxy file, which matches to a specific URL or IP address that the application is accessing, and redirect the requests that way.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.