jQuery in Action, 2nd edition*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes something about rmic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "something about rmic" Watch "something about rmic" New topic
Author

something about rmic

stanley wang
Greenhorn

Joined: Jun 24, 2002
Posts: 12
hi,all
the ProductImp1.java and ProductImp1.class save in c:\test\;
i used command:
rmic ProductImp1
show error:can't find the class ProductImp1
why?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Do you have your classes in packages?
and are you running RMIC from the c:\test directory?
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
stanley wang
Greenhorn

Joined: Jun 24, 2002
Posts: 12
hi,Mark:
because i get the scjd exam ,so i must do some test code.
i have no "package" expression .
only:
import java.rmi.*;
import java.rmi.server;
public class ProductImp1 extends UnicastRemoteObject implements Product{
... ...
}
i have try run "rmic ProductImp1" in "c:\test" but show the same error!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Oh just to make sure you are compiling the class first, right?
OK try this. Make a sub directory under the test directory called stanley. Make your class be in the stanley package

Then in your test directory run

Let's see what happens there.
Mark
Ian B Anderson
Ranch Hand

Joined: Jun 26, 2001
Posts: 275
Hello,
The other thing to check is that . is in your classpath.
E.g.
rmic -classpath . packageName.ClassName
or without packages
rmic -classpath . ClassName
Ian


<a href="http://www.INESystems.com/scbcd/" target="_blank" rel="nofollow">http://www.INESystems.com/scbcd/</a> - SCBCD Exam simulator<br /><a href="http://www.INESystems.com/scbcd/" target="_blank" rel="nofollow">http://www.INESystems.com/scea/</a> - SCEA Exam simulator
stanley wang
Greenhorn

Joined: Jun 24, 2002
Posts: 12
hi,Mark and Anderson :
thank you for your help .i tried it in many ways .This morning i get it at last .
we must add the sentence as this in autoexec.bat
set CLASSPATH=.;c:\jdk1.3\;
after it ,it's OK now !
thank you again!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Good call Ian. I made an assumption there.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: something about rmic
 
Similar Threads
ant rmic task, and running out of stack space
RMI Requirements
Creepy classpath?
rmic
java.rmi.ServerException: RemoteException