arith

所属分类:Java编程
开发工具:Java
文件大小:9KB
下载次数:12
上传日期:2008-01-06 19:11:04
上 传 者xiaojiyi
说明:  no intro
(JAVA rmi simple routine. Mathematical calculations, output results)

文件列表:
arith\client\4-sclient.bat (328, 2007-09-08)
arith\client\ArithApp.class (1205, 2007-09-08)
arith\client\ArithApp.java (888, 2007-08-02)
arith\client\ArithImpl_Stub.class (1771, 2007-08-02)
arith\client\ArithInterface.class (207, 2007-09-08)
arith\client\ArithInterface.java (120, 2002-01-24)
arith\client\compile.bat (12, 2003-11-06)
arith\client\java.policy (159, 2007-08-02)
arith\client\policy.txt (85, 2007-08-02)
arith\server\1-compile.bat (58, 2007-08-03)
arith\server\2-shttp.bat (472, 2007-08-06)
arith\server\3-sserver.bat (393, 2007-08-09)
arith\server\ArithImpl.class (518, 2007-09-08)
arith\server\ArithImpl.java (334, 2002-01-24)
arith\server\ArithImpl_Stub.class (1771, 2007-09-08)
arith\server\ArithInterface.class (207, 2007-09-08)
arith\server\ArithInterface.java (119, 2002-01-24)
arith\server\ArithServerMain.class (1380, 2007-09-08)
arith\server\ArithServerMain.java (775, 2002-01-24)
arith\server\java.policy (159, 2000-02-07)
arith\server\policy.txt (85, 2007-08-02)
arith\client (0, 2007-09-08)
arith\server (0, 2007-09-08)
arith (0, 2007-09-08)

The client doesn't access the http server for the stub class. The program works only when we copy the interface and stubfiles into the client. The commands are in the .bat file. They are invoked in the following order. Server: compile.bat, shttp.bat, sserver.bat. Client: compile.bat, sclient.bat Window 1 cd C:\Documents and Settings\Paramesh\Desktop\COMP9031\Week3\Week3-code\SimpleExamples\arith\server javac *.java rmic -v1.2 ArithImpl rmiregistry Window 2 cd C:\Documents and Settings\Paramesh\Desktop\COMP9031\Week3\Week3-code\SimpleExamples\arith\server java -Djava.security.policy=policy.txt ArithServerMain Also Try: java -Djava.security.policy=java.policy ArithServerMain Window 3 Note: Client should have the server interface classfile ArithInterface.class and the stub file ArithImpl_Stub.class cd C:\Documents and Settings\Paramesh\Desktop\COMP9031\Week3\Week3-code\SimpleExamples\arith\client javac *.java java -Djava.security.policy=policy.txt ArithApp Also Try: java -Djava.security.policy=java.policy ArithApp

近期下载者

相关文件


收藏者