[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4204
  • Last Modified:

RMIC compile error- class * not found

When trying to compile my class with the RMI compiler into stubs and skeletons, I am getting the message "error: Class examples.hello.Hello not found" even though I am running the rmic.exe from the directory where the class is located... I have no idea what this problem could be???  I have tried fooling around with the CLASSPATH var and the RMIC options, but to no avail- any ideas please?
0
2djohn
Asked:
2djohn
1 Solution
 
diakovCommented:
It seems, your class is defined within the package examples.hello or you haven't 'import'-ed some package you need.
In java packages reside in directories, relative to the directory you compile. In your case, put all files from this package in a directory examples\hello, then run the compiler from the directory where the 'examples' is a subdirectory, providing good path name for the file you're compiling.

Cheers.
0
 
sirigereCommented:
import package java.rmi.server.*
that will solve u'r problem..that's why u'r server was not generating the stub and the skeleton


0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now