This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to start rmic registry and server using java 1.7 ?

 
Bhavesh Sangwan
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AnyOne Listening for queries here....?

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

Knock Knock......<><>
 
Vijitha Kumara
Bartender
Posts: 3908
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you followed a tutorial like the one from Java SE documentation which should guide you with correct approach?
 
Bhavesh Sangwan
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3908
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic