How do I configure proxy settings for Java?


This article applies to:
  • Platform(s): Windows 8, Windows 7, Vista, Windows XP, Windows 10, macOS
  • Java version(s): 7.0, 8.0

Proxy settings for running applets can be controlled through the Java Control Panel.

Find the Java Control Panel

» Windows
» Mac OS X

Configure Proxies through the Java Control Panel

  1. In the Java Control Panel, under the General tab, click on Network Settings.
  2. Select the Use Browser Settings checkbox.
  3. Click OK to save your changes.

    Network Settings for the Java Control Panel
  4. Close all browser windows. Restart the browser and try to load the applet.
  5. If the applet still does not load and you see the same connection error, try to configure your web browser's proxy settings.

Common Error if Proxy is not set

A common error that is seen if the proxy settings are not correct:
While application is starting, a dialog like this appears including "ClassNotFoundException"

General Exception


Name: JavaAppplication

ClassNotFoundException: JavaAppplication.class