RMI ClassNotFoundException [英] RMI ClassNotFoundException

查看:109
本文介绍了RMI ClassNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对rmiregistry有问题。我遇到以下错误:

I have problem with rmiregistry. I'm getting below error:

Cannot bind to URL [rmi://........]: javax.naming.NamingException [Root exception is java.rmi.UnexpectedException: undeclared checked exception; nested exception is: 
                java.lang.ClassNotFoundException: Could not find class (javax.management.remote.rmi.RMIServerImpl_Stub) at codebase ()]

我检查过,类存在于类路径中。

I checked, class exist in the classpath.

我在Linux上使用Java 1.6。我开始 rmiregistry 6667
是否有人遇到此错误?

I used java 1.6 on linux. I started rmiregistry 6667. Has anyone met with this error?

推荐答案


类存在于类路径中。 / p>

class exist in the classpath.

在您的 JVM的类路径中。在注册管理机构的类路径和客户端的类路径中也需要它。

In your JVM's classpath. It is also needed on the Registry's classpath, and the client's.

这篇关于RMI ClassNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆