• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rmic stub query

 
Michael Hermano
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'd like to know whether you guys still create stub classes for rmi implementation?

I always got this error msg whenever i try to generate it:

The major.minor version '50.0' is too recent for this tool to understand.
 
Michael Hermano
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's ok I've solved this problem
 
Kah Tang
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So.. what caused it?
 
Michael Hermano
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was using 2 sdk, 1.5 and 1.6; they should be the same
 
Ericsson Liu
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do we have to use rmic to generaate stubs?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11886
198
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. If you do not use rmic, they will be generated at runtime, and dynamically downloaded (and you should have an instruction stating you are not allowed to have dynamic downloading).

Regards, Andrew
 
jin Young
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andrew,

If i use jdk 1.5,use:
rmic xxx
to generate a xxx_Stub.class. just put it in the same package with the remote class. is that ok?

We need user -v1.2 etc or not? Thanks a lot.
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using Java 5 or higher, there's no need to run the rmic command. I myself did not generate any stub, and got 40 points on the server implementation criteria.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic