wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes How to start rmic registry and server using java 1.7 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How to start rmic registry and server using java 1.7 ?" Watch "How to start rmic registry and server using java 1.7 ?" New topic
Author

How to start rmic registry and server using java 1.7 ?

Bhavesh Sangwan
Ranch Hand

Joined: Aug 08, 2012
Posts: 57
Hello there ! I am new to java RMI, actually I wrote, compiled and started rmic, and also tried to start server but failed due to _stub 'ClassNotFound' exception..... I'm using java 7... I searched a lot on Google but nobody told step by step example that could work... please help telling me steps including command-line .......... please... I have everything just tell me how to start server, and required settings like codebase or policy settings etc... Thanks
Bhavesh Sangwan
Ranch Hand

Joined: Aug 08, 2012
Posts: 57
AnyOne Listening for queries here....?

Or Should'nt I follow this forum ....?

Knock Knock......<><>
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3825

Have you followed a tutorial like the one from Java SE documentation which should guide you with correct approach?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Bhavesh Sangwan
Ranch Hand

Joined: Aug 08, 2012
Posts: 57
Yes sir! but not satisfied with that because they only instruct in formal way... I want the exact solution without any confusion which can work without errors at all... Thanks for your post atleast...
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3825

What kind of confusion you have and what errors you get? You might want to explain them so that other people would be able to help you with that.
Bhavesh Sangwan
Ranch Hand

Joined: Aug 08, 2012
Posts: 57
when I write, compile and start the server, exception occurs stating abc_stub.class ClassNotFoundException... I followed a tutorial example from a site... but not succeed executing the code....

I did some google and got an idea about security policy and codebase BUT don't know the exact command OR by programming how to set them .... Please help

Adder.java


AdderRemote.java


MyServer.java


MyClient.java


and Eception is-

C:\Users\Bhavesh\Desktop\java for me\rmi\simple>java MyServer
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: AdderRemote_Stub

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to start rmic registry and server using java 1.7 ?