• Post Reply Bookmark Topic Watch Topic
  • New Topic

rmic problems

 
Barry Tsai
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
I got a very strange problem.
When I produce stub and skel from the java that don't includ package, that
will be fine.But if my class including the package, then rmic will report
it can't find that class.

what's going on??
Best Regards,

Barry
 
John Canavan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Barry,

Make sure you are in the correct directory, for example�

On my machine I have the following directory structure for the project:
java/contractor/remote, in the remote directory (package) I have all the networking Java files for the project e.g. contractor.remote.DataImpl. When I want to create the stub for DataImpl I open the prompt in the java directory and create the stub from there, therefore I have a (Windows) prompt like this: d:\java>rmic contractor.remote.DataImpl. The stub is now created in the remote directory.

Hope that helps,
John
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12059
232
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Barry,

Are you starting the RMI Registry from within your application (in which case the paths should be set up correctly), or are you connecting to an already running RMI Registry?

Regards, Andrew
 
Barry Tsai
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to John,
thank you. it's work.


to Andrew,
I don't have start rmiregistry.


Regards,
Barry
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!