This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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
Pie
Posts: 12012
218
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic