0

希望最新的 Java 运行时(1.5 或 1.6)是应该使用 Internet Explorer Web 堆栈下载 .jar 文件的小程序插件吗?我问的原因是我在 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
4

2 回答 2

1

// 指定代理设置
sysProperties.put("proxyHost","myhost");
sysProperties.put("proxyPort","myport");
sysProperties.put("proxySet", "true");

如果您知道“myhost”和“myport”是什么意思,那就太好了......

尝试使用 localhost 或 127.0.0.1 仍然对我不起作用:-(

于 2010-10-05T12:26:37.583 回答
1

您可以将 JVM 配置为使用 Fiddler 进行联网:http ://www.fiddlerbook.com/fiddler/help/hookup.asp#Q-JavaTraffic

于 2009-10-26T21:30:19.823 回答