先试试不打包的.
错误是类没找到,看看你指定的codebase下是否有这个类
examples.callback.MessageReceiverImpl_Stub,存放的路径对不对?
错误是类没找到,看看你指定的codebase下是否有这个类
examples.callback.MessageReceiverImpl_Stub,存放的路径对不对?
解决方案 »
- 求教一个问题。能装两个JDK,和eclipse吗 分别搞安卓和java
- middleobject.jar 包有什么用?
- 每秒300次请求的服务端,线程池的池中线程最大个数设置多少个比较合理
- JMenuItem!!
- 急问:::10分: java命令行中-D定义的属性值中带空格如何处理?
- 怎么使用JAVA代码来查看基本类型所占内存的大小??即多少BIT??我想用程序来看看。
- 实在不知道为什么这么简单会有错
- 请各位师父帮一下我
- 一个关于于util包中integer类的问题
- 请问如何判断jTextField中输入的是数字呢?
- 用什么方法可以把一个String型的变量的数据转化成UTF-8 code!急 急
- InputStream流写到数据库里抛出以下的异常??
-Djava.security.policy=java.policy cacl.CalcServer就出现如上错误java.lang.ClassNotFoundException: cacl.CaclImpl_Stub
If you do start the rmiregistry and it can find your stub classes in CLASSPATH, it will not remember that the loaded stub class can be loaded from your server's code base, specified by the java.rmi.server.codebase property when you started up your server application. Therefore, the rmiregistry will not convey to clients the true code base associated with the stub class and, consequently, your clients will not be able to locate and to load the stub class or other server-side classes.运行时命令大概象这样子:
java -Djava.rmi.server.codebase=file:/c:\home\ann\public_html\classes/
-Djava.rmi.server.hostname=zaphod.east.sun.com
-Djava.security.policy=java.policy
engine.ComputeEngine跟
java -Djava.rmi.server.codebase=file:/c:\home\jones\public_html\classes/
-Djava.security.policy=java.policy
client.ComputePi zaphod.east.sun.com 20更详细的:
http://java.sun.com/docs/books/tutorial/rmi/running.html祝你好运
我已经看了好多次了,
to cxj_2000(多多呢?多多呢?啊!!!¥%#%……※) 你说下面的设置错在哪里?
我的package是cacl,所有类文件都放在e:\cacl下,里面也有CaclImpl_Stub.class,及CaclImpl_Skel.class文件,运行上面的java -cp "e:\cacl.jar" -Djava.rmi.server.codebase=file:/e:\cacl/
-Djava.security.policy=java.policy cacl.CalcServer就出现如上错误java.lang.ClassNotFoundException: cacl.CaclImpl_Stub
java -cp "e:\cacl.jar" -Djava.rmi.server.codebase=file:/pathto/cacl.jar 注意加上cacl.jar。
最好用个http server 把cacl.jar加到发布路径里面启动的命令写成:java -cp "e:\cacl.jar" -Djava.rmi.server.codebase=http://servername/pathto/cacl.jar 试试看。我做这个的时候也碰到这样的问题,最后我就使用了http server 使用文件系统的极其容易出问题(莫名奇妙的问题)good luck我的qq:49074333
因此你类如calc.CaclImpl_Stub,应这样存放
e:\cacl\cacl\CaclImpl_Stub.class注意你的codebase目录应是类的根目录
你的意思是说,rmiregistry一定要在你运行的目录中启动?