I'm trying to develop a Java RMI application and found out that it's not straight forward to tell eclipse to compile it using rmic.
Are there any available addons (if so which one do you recommend)?
or
what are the ways to accomplish this?
Thanks.
To do this, go to Run → External Tools → External Tools Configurations... from the menu. Create a new Program configuration, which will look like the figure below. Browse File System... to locate your rmiregistry , which is usually in the bin directory of the Java distribution. Save and run this external tool.
The rmic compiler generates stub and skeleton class files (JRMP protocol) and stub and tie class files (IIOP protocol) for remote objects. These classes files are generated from compiled Java programming language classes that are remote object implementation classes.
Overrides the location of bootstrap class files. Specifies the path the rmic command uses to look up classes. This option overrides the default or the CLASSPATH environment variable when it is set. Directories are separated by colons or semicolons, depending on your operating system.
As of Java 5 there is no need to use the rmic
tool since stubs are now dynamically generated. I'd suggest following an updated tutorial which is more geared towards RMI implementations for Java 5 or greater. Following the RMI Guide for Java 5 should give you a decent start.
You have plugins for eclipse for RMI applications like this one: http://www.genady.net/rmi/index.html
Edit: Also, some free plugins like this: http://sourceforge.net/projects/rmi-eclipse/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With