java - WebView shows blank page when running behind proxy -
as simple possible:
public class webviewsample extends application { public static void main(string[] args) { // tried without proxy configuration, same result. system.getproperties().put("proxyset", "true"); system.getproperties().put("proxyhost", "http://127.0.0.1"); system.getproperties().put("proxyport", 5677); launch(args); } @override public void start(final stage primarystage) { final webview webview = new webview(); webview.getengine().load("http://docs.oracle.com/javafx/"); primarystage.setscene(new scene(webview)); primarystage.show(); } }
i'm using cntlm
handle proxy authentication. (i'm running jdk8u5
).
what's wrong ?
configuring https
solves problem.
system.setproperty("https.proxyhost", "127.0.0.1"); system.setproperty("https.proxyport", "5677");
Comments
Post a Comment