This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Please help me. My HotelRemote is packaged in suncertify.rmi; and extends UnicastRemoteObject implements HotelInterface. The HotelInterface extends Remote and also packaged in suncertify.rmi; . In directory "E:\java\assign\suncertify\rmi>" I javac HotelRemote and get HotelRemote.class . But when i type the command "rmic HotelRemote" in the same directory, the computer says "error: Class HotelRemote not found." Why?What is wrong here?
especially the section 'Problems that you may run into' And it may be a good idea to go through this document in full to see if you have missed anything. [ April 12, 2006: Message edited by: sumuhan umamaheswarampillai ]
Taking a very quick glance at the toolsdoc for rmic, I see that you must use the fully qualified class name. So it will be: rmic suncertify.rmi.HotelRemote with your CLASSPATH set to include the location of the suncertify directory.
especially the section 'Problems that you may run into' And it may be a good idea to go through this document in full to see if you have missed anything.
[ April 12, 2006: Message edited by: sumuhan umamaheswarampillai ]
Can we use the dynamic stub feature of Tiger? In Andrew's book, he mentioned that if dynamic class loading is used then we cannot use Tiger 5 dynamic stub. However I don't think dynamic class loading has anything to do with this new Tiger feature. Anyway, ideas?
Joined: Mar 31, 2005
Oops, I misused the words, "if dynamic class loading is used then we cannot use Tiger 5 dynamic stub" should be changed to "if dynamic class loading is forbidded by the instructions then we cannot use Tiger 5 dynamic stub".
Anyone use dynamic stub of Tiger 5 on his/her assignment?
In the current assignments, under "Restrictions on RMI", there is the statement "You must provide all classes pre-installed so that no dynamic class downloading occurs."
One of the major enhancements to RMI in JDK 5 was the ability for dynamic generation of stub classes.
On the one hand, I feel that a solution developed under JDK 5 does have all the necessary classes available. However I suspect that using the dynamic generation of stubs may cause problems with the restrictions on RMI.
Can you please confirm whether we are allowed to use the dynamic generation of stubs in SCJD assignments?
Thanks a lot Andrew, then I would not risk my $400 to use dynamic stub generation.
Men, I happen to use JDK 5.0 for my solution, but until now the only feature I use is generic for the collections - nothing else. The other "cool" features like the new concurrent package or dynamic stub are either complex (compared with the plain old 'synchronized') or forbidded