• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

rmic problems

 
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
 
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
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic