Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMI & Netbeans really strange behaviour

843793Dec 29 2006 — edited Jul 11 2007
NetBeans 5.5, Java 1.5

I have two packages: packageAAA and packageBBB

Inside packageAAA I have Interface SomeInterface and Class SomeInterfaceImpl.

Inside packageBBB I have a class with main. This class imports packageAAA.*, does
LocateRegistry.getRegistry()
and the following:
SomeInterface abc = new SomeInterfaceImpl();
Then there is rebind for abc in the registry.

So... now I'd like to run it: I fire up DOS prompt, change dir to the project dir and run rmiregistry.

Then, go back to netbeans and launch my Project. Result: it hangs on

run:
and nothing more happens.

???

Notice: I put a simple out.println as the first line in method main. Well... it does NOT execute!!! Everything frozen!

Can someone help me pleaaase?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2007
Added on Dec 29 2006
3 comments
75 views