How to set proxies for JavaFX web interface URL?

My computer works as a proxy. I want to access the URL from JavaFX WebView. I used methods like System.setProperty () to set the proxy for javafx. But he did not work. Please, help.

+4
source share
3 answers

According to JavaFX deployment documentation .

3.2.3 Embedded proxy support

A properly packaged JavaFX application has proxy settings initialized according to the Java Runtime configuration settings. By default, this means that proxy settings will be taken from the current browser if the application is embedded in a web page, or proxy server settings will be used. Proxy settings are initialized by default in all run modes.

For information on how to properly host JavaFX applications, see the deployment documentation that was previously mentioned.

+1
source

you can use

System.setProperty("http.proxyHost","proxy.esrf.fr");
System.setProperty("http.proxyPort","3128");

As said in this answer .

0
source

:

" , -,

, (), :

System.setProperty(
  "http.proxyHost",
  MY_PROXY_HOST);   

System.setProperty(
  "http.proxyPort",
  MY_PROXY_PORT);

in Netbeans, you can turn off proxy settings when you run the application to override it in code by going to:

Project - Properties - Deployment - Disable proxy detection on application launch

.

0
source

All Articles