Community
Participate
Working Groups
As of build 20020425, there is no easy way to run rmic on a class in a project. A context-menu option for running rmic on a source file would be a good feature, or (even better) automatic rmic compilation of any class that extends RemoteObject. The use case would be: 1. In a project, user creates a class that extends java.rmi.server.RemoteObject or java.rmi.server.UnicastRemoteObject. Ideally, this should work whether the user specifies the superclass in the "New->Class" wizard or creates a vanilla class and then later adds the "extends RemoteObject" manually to the class declaration. 2. Eclipse detects that the class extends RemoteObject and invokes rmic on the class automatically and/or on save and outputs the Stub and Skel classes to the project's build output folder. Other considerations: - rmic is in tools.jar
Description below glosses over the proper sequence of events with rmic. First the source file has to be compiled using javac or the built-in Eclipse compiler. Then rmic is run on the output *class* file, not the source file.
This could potentially be implemented with a new launch type, much like the AppletViewer one that was recently made available.
this could be achieved by implementing an rmic builder, that runs as a postbuilder of the Java builder. not planned for 2.0 workaround use Ant
Reopening
*** This bug has been marked as a duplicate of 7879 ***