希望最新的Java运行时(1.5或1.6)是支持使用Internet Explorer Web堆栈下载.jar文件的applet插件吗?我问的原因是我在Fiddler看不到请求。更多背景 - 我正在尝试解决此错误:
load: class at.workforce.applet.VMVersionApplet.class not found.
java.lang.ClassNotFoundException: at.workforce.applet.VMVersionApplet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: at.workforce.applet.VMVersionApplet.class
答案 0 :(得分:1)
您可以将JVM配置为使用Fiddler进行联网:http://www.fiddlerbook.com/fiddler/help/hookup.asp#Q-JavaTraffic
答案 1 :(得分:1)
//指定代理设置
sysProperties.put( “ProxyHost的”, “为myhost”);
sysProperties.put( “proxyPort”, “MyPort上”);
sysProperties.put(“proxySet”,“true”);
如果你知道“myhost”和“myport”是什么意思,那就太好了。
尝试使用localhost或127.0.0.1仍然不适合我: - (