File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rmic tool needed?

 
Yu Sun
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I tested my project a lot and it works well. However, I just found that in Andrew's book, it also mentioned using rmic tool to generate the stub.

What is the purpose? Do we need to use this?

I made the RemoteServiceImpl extending UnicastRemoteObject, and register the RMI using the regular approach.

Thanks.

Yu
 
Carlos Morillo
Ranch Hand
Posts: 221
Java Python Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yu,

Yu Sun wrote:
What is the purpose? Do we need to use this?


Yes, you do. In my instructions I have:

You must provide all classes pre-installed so that no dynamic class downloading occurs.



HTH,

Carlos.
 
Yu Sun
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Carlos. I guess I am ready to submit

Yu
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Champions, I myself didn't use rmic and said that in the essay exam and in my choices.txt file. There was another guy from Brazil too (I don't recall his name right now) that didn't use it and also passed. I said that, since I was using Java 6, it wasn't necessary anymore so I chose not to use it.
 
Ralf Titgemeyer
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yo,

in my assignment there is the same requirement as Carlos wrote...

You must provide all classes pre-installed so that no dynamic class downloading occurs.


So in my opinion you have to use rmic, because it is a must. I think we all know that this ist not necessary since Java 5, but it is a must.

I use Ant to make everything in my project, from the Compile, over the creating of JavaDoc to the complete build of the jar to submit. For example this is an Ant task for rmic:


..and this task compiles one stub and one skeleton...

Kind Regards,
Ralf
 
Andy Jung
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<rmic classname="suncertify.db.UrlyBirdModelImpl" base="build/classes"/>


Hi Ralf,

seems like you have exactly the same nomenclature like me .
I also named my model "suncertify.db.UrlyBirdModelImpl".

Kind regards,
Andy
 
Ralf Titgemeyer
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andy,

I think we had the same teacher....

Have a nice evening in Munich,
Ralf
 
Yu Sun
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, guys.

I also have that "must" requirement for my assignment, so I just generated it.

Yu
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic