0

I have created an RMI client server and it works exactly how I want it to however, when I switched back to my laptop from the library computers, I found that the following warning occurs when I wish to compile my server with rmic server:

Warning: generation and use of skeletons and static stubs for JRMP is deprecated. Skeletons are unnecessary, and static stubs have been superseded by dynamically generated stubs. Users are encouraged to migrate away from using rmic to generate skeletons and static stubs. See the documentation for java.rmi.server.UnicastRemoteObject.

I'm confused as to where this error has come from and need to recompile my program as while it works I need to change a print statement which is incorrect. Does anyone have an idea as to why I'm receiving this error and how I can resolve/get round it?

user207421
  • 305,947
  • 44
  • 307
  • 483
John Anderson
  • 17
  • 1
  • 8

1 Answers1

0

The warning indicates that the version (or just the configuration) of the Java compiler changed. As the warning says​, you should no longer use rmic to generate stubs, but use dynamic stubs generated automatically. If you only get a warning, your code should still work... Anything else is hard to say without any code.

sruetti
  • 532
  • 2
  • 7
  • Thank you for getting back to me, would it be a huge task to change to dynamic stubs? – John Anderson Mar 13 '17 at 23:47
  • Sorry, it has been some time since I really implemented an RMI service from scratch. But as far as I recall, you just don't call rmic any more (since Java 1.5), maybe change the call to export an object. Just follow a recent a (>= Java 1.5) example, e.g. http://stackoverflow.com/questions/2080025/what-is-rmic-in-rmi – sruetti Mar 14 '17 at 00:22
  • Thanks sruetti, I'll have a look. – John Anderson Mar 14 '17 at 00:26