File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes rmic stub query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "rmic stub query" Watch "rmic stub query" New topic
Author

rmic stub query

Michael Hermano
Greenhorn

Joined: Jul 30, 2008
Posts: 14
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.


SCJP 1.4<br />SCJD<br />Now working on for SCWCD
Michael Hermano
Greenhorn

Joined: Jul 30, 2008
Posts: 14
It's ok I've solved this problem
Kah Tang
Ranch Hand

Joined: Sep 10, 2007
Posts: 58
So.. what caused it?
Michael Hermano
Greenhorn

Joined: Jul 30, 2008
Posts: 14
I was using 2 sdk, 1.5 and 1.6; they should be the same
Ericsson Liu
Greenhorn

Joined: Sep 17, 2008
Posts: 21
do we have to use rmic to generaate stubs?


SCJP SCJD SCWCD
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

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


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
jin Young
Greenhorn

Joined: Nov 03, 2008
Posts: 21
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

Joined: Dec 28, 2007
Posts: 2258
    
    3

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.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rmic stub query
 
Similar Threads
Setting wsse:Security from Java swing client
Java Web Service Client
Problems running RMI
axis 1.4 + wss4j not working.
How to deploy classses in RMI