Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMI Exception : java.lang.NoSuchMethodError

843793Jun 14 2007 — edited Jun 14 2007
I've received this Exception :

Exception in thread "main" java.lang.NoSuchMethodError:stub class initialization failed at : CLASSE_Stub.<clinit> <Unknown Source>

I start the registry with : rmiregistry
I compile all the -java : javac *.java
I create the stub with : rmic CLASSE
but when i start the Remote Object with : java CLASSE I have this exception

I think I have problem with codebase but I don't know how to solve it ...help me please.

I have my .class in c:\prove\ and I try the command :

java �Djava.rmi.server.codebase= file://c:\prove\ CLASSE

but I received :

Exception in thread "main" java.lang.NoClassDEfFoundError : �Djava/rmi/server/codebase=
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2007
Added on Jun 14 2007
4 comments
1,368 views