10 个解决方案
#1
什么叫"没有代理"?
你能不能说清楚一点!
或者干崔把错误信息贴上来!
提醒一下:tomcat4安装之后,默认的端口是8080。
(不知你改了没有)
你能不能说清楚一点!
或者干崔把错误信息贴上来!
提醒一下:tomcat4安装之后,默认的端口是8080。
(不知你改了没有)
#2
Java(TM) 插件: 版本 1.3.0_01
使用 JRE 版本 1.3.0_01 Java HotSpot(TM) Client VM
用户主目录 = D:\Documents and Settings\luyong
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
java.lang.ClassCastException: EchoServer
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.ClassCastException: EchoServer
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
///////////////////////////////////////////////////////////
端口我已经改为80了,我希望它能独立工作,不依赖Apache。以上是错误代码!!!
使用 JRE 版本 1.3.0_01 Java HotSpot(TM) Client VM
用户主目录 = D:\Documents and Settings\luyong
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
java.lang.ClassCastException: EchoServer
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.ClassCastException: EchoServer
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
///////////////////////////////////////////////////////////
端口我已经改为80了,我希望它能独立工作,不依赖Apache。以上是错误代码!!!
#3
我不知道是哪个方面的问题!!!Tomcat???Java Plug-in??Or others????
#4
理论上说应当与tomcat无关!
而且你"到相应的目录下直接访问就没有问题!",程序也应当没问题!
1.换个webserver!把applet和html放在apache或iis底下,看看能不能运行!--看看是不是tomcat的原因!
2.重装Java Plug-in--看看是不是Java Plug-in的问题。
3.从另一台机器*问--看看是不是浏览器的问题。
而且你"到相应的目录下直接访问就没有问题!",程序也应当没问题!
1.换个webserver!把applet和html放在apache或iis底下,看看能不能运行!--看看是不是tomcat的原因!
2.重装Java Plug-in--看看是不是Java Plug-in的问题。
3.从另一台机器*问--看看是不是浏览器的问题。
#5
把127.0.0.1改为localhost
tomcat好不好,http://localhost:你的端口号就知道行不行了!
记得结算给分!
tomcat好不好,http://localhost:你的端口号就知道行不行了!
记得结算给分!
#6
同意楼上
http://127.0.0.1:80/ 试试
http://127.0.0.1:80/ 试试
#7
问题找到了,但解决方法还没找到!!应该是缺少文件的问题,但我只用了编译了一个Java文件呀,要正常的运行却还需要其他的文件,比如什么TryJApplet_jComboBox1.ser文件等!!不过,只是一个程序正常了,还有就是EchoServer(上面列出来的)程序还不正常,出来的异常信息还是那些!!我估计是java的系统文件没找到,可我该如何设置呢??待会把那个程序的源代码贴出来!!!
#8
/**
* @version 1.10 1997-06-27
* @author Cay Horstmann
*/
import java.io.*;
import java.net.*;
public class EchoServer
{ public static void main(String[] args )
{
System.out.println("Begin.....");
try
{ ServerSocket s = new ServerSocket(8002);
Socket incoming = s.accept( );
BufferedReader in = new BufferedReader
(new InputStreamReader(incoming.getInputStream()));
PrintWriter out = new PrintWriter
(incoming.getOutputStream(), true /* autoFlush */);
out.println( "Hello! Enter BYE to exit." );
boolean done = false;
int t;
while (!done)
{
//t=in.read();
String line = in.readLine();
if (line == null) done = true;
else
{ out.println("Echo: " + line);
if (line.trim().equals("BYE"))
done = true;
}
}
incoming.close();
}
catch (Exception e)
{ System.out.println(e);
}
}
}
CLASSPATH: .;D:\VisualCafe\Java\Lib;D:\VisualCafe\Java\Lib\SYMCLASS.ZIP;D:\VisualCafe\Java\Lib\CLASSES.ZIP;D:\VisualCafe\Java\Lib\COLLECTIONS.ZIP;D:\VisualCafe\Java\Lib\ICEBROWSERBEAN.JAR;D:\VisualCafe\Java\Lib\JSDK.JAR;D:\VisualCafe\Java\Lib\SYMTOOLS.JAR;D:\VisualCafe\JFC\SWINGALL.JAR;D:\VisualCafe\Bin\Components\SFC.JAR;D:\VisualCafe\Bin\Components\SYMBEANS.JAR;D:\VisualCafe\Java\Lib\DBAW.ZIP;D:\VisualCafe\Bin\Components\DBAW_AWT.JAR;D:\VisualCafe\Bin\Components\Databind.JAR;D:\VisualCafe\Java\Lib\Olite35.jar;;%CLASSPATH%;.
ClassPath: d:\java\sampledir;D:\IBM Connectors\classes;D:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;D:\jdk1.3.1_01\lib\tools.jar;D:\jdk1.3.1_01\src.jar;
第一个是“用户”的环境变量,第二个是系统的环境变量。还有,Tomcat已经正常运行了!
* @version 1.10 1997-06-27
* @author Cay Horstmann
*/
import java.io.*;
import java.net.*;
public class EchoServer
{ public static void main(String[] args )
{
System.out.println("Begin.....");
try
{ ServerSocket s = new ServerSocket(8002);
Socket incoming = s.accept( );
BufferedReader in = new BufferedReader
(new InputStreamReader(incoming.getInputStream()));
PrintWriter out = new PrintWriter
(incoming.getOutputStream(), true /* autoFlush */);
out.println( "Hello! Enter BYE to exit." );
boolean done = false;
int t;
while (!done)
{
//t=in.read();
String line = in.readLine();
if (line == null) done = true;
else
{ out.println("Echo: " + line);
if (line.trim().equals("BYE"))
done = true;
}
}
incoming.close();
}
catch (Exception e)
{ System.out.println(e);
}
}
}
CLASSPATH: .;D:\VisualCafe\Java\Lib;D:\VisualCafe\Java\Lib\SYMCLASS.ZIP;D:\VisualCafe\Java\Lib\CLASSES.ZIP;D:\VisualCafe\Java\Lib\COLLECTIONS.ZIP;D:\VisualCafe\Java\Lib\ICEBROWSERBEAN.JAR;D:\VisualCafe\Java\Lib\JSDK.JAR;D:\VisualCafe\Java\Lib\SYMTOOLS.JAR;D:\VisualCafe\JFC\SWINGALL.JAR;D:\VisualCafe\Bin\Components\SFC.JAR;D:\VisualCafe\Bin\Components\SYMBEANS.JAR;D:\VisualCafe\Java\Lib\DBAW.ZIP;D:\VisualCafe\Bin\Components\DBAW_AWT.JAR;D:\VisualCafe\Bin\Components\Databind.JAR;D:\VisualCafe\Java\Lib\Olite35.jar;;%CLASSPATH%;.
ClassPath: d:\java\sampledir;D:\IBM Connectors\classes;D:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;D:\jdk1.3.1_01\lib\tools.jar;D:\jdk1.3.1_01\src.jar;
第一个是“用户”的环境变量,第二个是系统的环境变量。还有,Tomcat已经正常运行了!
#9
:(
#10
gz up
#1
什么叫"没有代理"?
你能不能说清楚一点!
或者干崔把错误信息贴上来!
提醒一下:tomcat4安装之后,默认的端口是8080。
(不知你改了没有)
你能不能说清楚一点!
或者干崔把错误信息贴上来!
提醒一下:tomcat4安装之后,默认的端口是8080。
(不知你改了没有)
#2
Java(TM) 插件: 版本 1.3.0_01
使用 JRE 版本 1.3.0_01 Java HotSpot(TM) Client VM
用户主目录 = D:\Documents and Settings\luyong
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
java.lang.ClassCastException: EchoServer
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.ClassCastException: EchoServer
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
///////////////////////////////////////////////////////////
端口我已经改为80了,我希望它能独立工作,不依赖Apache。以上是错误代码!!!
使用 JRE 版本 1.3.0_01 Java HotSpot(TM) Client VM
用户主目录 = D:\Documents and Settings\luyong
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
java.lang.ClassCastException: EchoServer
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.ClassCastException: EchoServer
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
///////////////////////////////////////////////////////////
端口我已经改为80了,我希望它能独立工作,不依赖Apache。以上是错误代码!!!
#3
我不知道是哪个方面的问题!!!Tomcat???Java Plug-in??Or others????
#4
理论上说应当与tomcat无关!
而且你"到相应的目录下直接访问就没有问题!",程序也应当没问题!
1.换个webserver!把applet和html放在apache或iis底下,看看能不能运行!--看看是不是tomcat的原因!
2.重装Java Plug-in--看看是不是Java Plug-in的问题。
3.从另一台机器*问--看看是不是浏览器的问题。
而且你"到相应的目录下直接访问就没有问题!",程序也应当没问题!
1.换个webserver!把applet和html放在apache或iis底下,看看能不能运行!--看看是不是tomcat的原因!
2.重装Java Plug-in--看看是不是Java Plug-in的问题。
3.从另一台机器*问--看看是不是浏览器的问题。
#5
把127.0.0.1改为localhost
tomcat好不好,http://localhost:你的端口号就知道行不行了!
记得结算给分!
tomcat好不好,http://localhost:你的端口号就知道行不行了!
记得结算给分!
#6
同意楼上
http://127.0.0.1:80/ 试试
http://127.0.0.1:80/ 试试
#7
问题找到了,但解决方法还没找到!!应该是缺少文件的问题,但我只用了编译了一个Java文件呀,要正常的运行却还需要其他的文件,比如什么TryJApplet_jComboBox1.ser文件等!!不过,只是一个程序正常了,还有就是EchoServer(上面列出来的)程序还不正常,出来的异常信息还是那些!!我估计是java的系统文件没找到,可我该如何设置呢??待会把那个程序的源代码贴出来!!!
#8
/**
* @version 1.10 1997-06-27
* @author Cay Horstmann
*/
import java.io.*;
import java.net.*;
public class EchoServer
{ public static void main(String[] args )
{
System.out.println("Begin.....");
try
{ ServerSocket s = new ServerSocket(8002);
Socket incoming = s.accept( );
BufferedReader in = new BufferedReader
(new InputStreamReader(incoming.getInputStream()));
PrintWriter out = new PrintWriter
(incoming.getOutputStream(), true /* autoFlush */);
out.println( "Hello! Enter BYE to exit." );
boolean done = false;
int t;
while (!done)
{
//t=in.read();
String line = in.readLine();
if (line == null) done = true;
else
{ out.println("Echo: " + line);
if (line.trim().equals("BYE"))
done = true;
}
}
incoming.close();
}
catch (Exception e)
{ System.out.println(e);
}
}
}
CLASSPATH: .;D:\VisualCafe\Java\Lib;D:\VisualCafe\Java\Lib\SYMCLASS.ZIP;D:\VisualCafe\Java\Lib\CLASSES.ZIP;D:\VisualCafe\Java\Lib\COLLECTIONS.ZIP;D:\VisualCafe\Java\Lib\ICEBROWSERBEAN.JAR;D:\VisualCafe\Java\Lib\JSDK.JAR;D:\VisualCafe\Java\Lib\SYMTOOLS.JAR;D:\VisualCafe\JFC\SWINGALL.JAR;D:\VisualCafe\Bin\Components\SFC.JAR;D:\VisualCafe\Bin\Components\SYMBEANS.JAR;D:\VisualCafe\Java\Lib\DBAW.ZIP;D:\VisualCafe\Bin\Components\DBAW_AWT.JAR;D:\VisualCafe\Bin\Components\Databind.JAR;D:\VisualCafe\Java\Lib\Olite35.jar;;%CLASSPATH%;.
ClassPath: d:\java\sampledir;D:\IBM Connectors\classes;D:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;D:\jdk1.3.1_01\lib\tools.jar;D:\jdk1.3.1_01\src.jar;
第一个是“用户”的环境变量,第二个是系统的环境变量。还有,Tomcat已经正常运行了!
* @version 1.10 1997-06-27
* @author Cay Horstmann
*/
import java.io.*;
import java.net.*;
public class EchoServer
{ public static void main(String[] args )
{
System.out.println("Begin.....");
try
{ ServerSocket s = new ServerSocket(8002);
Socket incoming = s.accept( );
BufferedReader in = new BufferedReader
(new InputStreamReader(incoming.getInputStream()));
PrintWriter out = new PrintWriter
(incoming.getOutputStream(), true /* autoFlush */);
out.println( "Hello! Enter BYE to exit." );
boolean done = false;
int t;
while (!done)
{
//t=in.read();
String line = in.readLine();
if (line == null) done = true;
else
{ out.println("Echo: " + line);
if (line.trim().equals("BYE"))
done = true;
}
}
incoming.close();
}
catch (Exception e)
{ System.out.println(e);
}
}
}
CLASSPATH: .;D:\VisualCafe\Java\Lib;D:\VisualCafe\Java\Lib\SYMCLASS.ZIP;D:\VisualCafe\Java\Lib\CLASSES.ZIP;D:\VisualCafe\Java\Lib\COLLECTIONS.ZIP;D:\VisualCafe\Java\Lib\ICEBROWSERBEAN.JAR;D:\VisualCafe\Java\Lib\JSDK.JAR;D:\VisualCafe\Java\Lib\SYMTOOLS.JAR;D:\VisualCafe\JFC\SWINGALL.JAR;D:\VisualCafe\Bin\Components\SFC.JAR;D:\VisualCafe\Bin\Components\SYMBEANS.JAR;D:\VisualCafe\Java\Lib\DBAW.ZIP;D:\VisualCafe\Bin\Components\DBAW_AWT.JAR;D:\VisualCafe\Bin\Components\Databind.JAR;D:\VisualCafe\Java\Lib\Olite35.jar;;%CLASSPATH%;.
ClassPath: d:\java\sampledir;D:\IBM Connectors\classes;D:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;D:\jdk1.3.1_01\lib\tools.jar;D:\jdk1.3.1_01\src.jar;
第一个是“用户”的环境变量,第二个是系统的环境变量。还有,Tomcat已经正常运行了!
#9
:(
#10
gz up