RMI Exception : java.lang.NoSuchMethodError

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 朌java.rmi.server.codebase= file://c:\prove\ CLASSE

but I received :

Exception in thread "main" java.lang.NoClassDEfFoundError : 鵇java/rmi/server/codebase=

[738 byte] By [lifesuna] at [2007-11-27 7:38:13]
# 1
One or more of your .class files is/are out of date. Recompile and redeploy everything, and restart the Registry too. Probably you changed something but didn't restart the Registry so the old version of the stub class was still in the Registry's JVM.
ejpa at 2007-7-12 19:18:46 > top of Java-index,Core,Core APIs...
# 2

I have found this command :

java -cp . -Djava.rmi.server.hostname=127.0.0.1 -Djava.rmi.server.codebase= . CLASSE

or

java -Djava.rmi.server.codebase= . CLASSE

but it throw this excepiton :

java.rmi.UnmarshalException : Error unmarshalling return; nested exception is :

java.net.MalformedURLException: no protocol: .

at sun rmi.transport.StreamRemoteCall.executeCall<Unknown Source>

at sun.rmi.server.UnicastRef.invoke<Unknown Source>

....

...

lifesuna at 2007-7-12 19:18:46 > top of Java-index,Core,Core APIs...
# 3

One or more of your .class files is/are out of date. Recompile and redeploy everything, and restart the Registry too. Probably you changed something but didn't restart the Registry so the old version of the stub class was still in the Registry's JVM.

I Recompile and Redeploy everithing but the rusult is the same

lifesuna at 2007-7-12 19:18:46 > top of Java-index,Core,Core APIs...
# 4

> Exception in thread "main" java.lang.NoClassDEfFoundError : 鵇java/rmi/server/codebase=

Apparently you made a typing error.

> java -cp . -Djava.rmi.server.hostname=127.0.0.1

> -Djava.rmi.server.codebase= . CLASSE

'.' is not a codebase specification. A codebase specification is a list of one or more URLs, as the exception makes clear. You had it right the first time apart from the apparent typing error.

> I Recompile and Redeploy everithing but the rusult is the same

Did you regenerate the stub? Try regenerating it with -keepgenerated and compiling it (and everything else) with javac. Redeploy. Restart the Registry. If you still get the exception paste it here along with the source code generated for the stub.

ejpa at 2007-7-12 19:18:46 > top of Java-index,Core,Core APIs...