Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7588097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:50:21+00:00 2026-05-30T19:50:21+00:00

I am staring to learn about RMI in java and I am using Netbeans

  • 0

I am staring to learn about RMI in java and I am using Netbeans 7.0.1. I created a basic interface

package helloclass;
import java.rmi.*;

public interface HelloInterface extends Remote
{
    public String hello() throws RemoteException;

}

This is the class that implements the interface

package helloclass;
import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;


public class HelloClass extends UnicastRemoteObject implements HelloInterface
{
    private String message;
    public HelloClass() throws RemoteException{}//constructor throwing RemoteException

    public String hello() throws RemoteException //method throwing RemoteException
    {
        return "Saying hello";
    }

    public static void main(String[] args)
    {



    }
}

In my understanding I now need to build these two classes and then run the rmic command in the command prompt.

How do I run this rmic command in the command prompt using netbeans?.
I have been trying by going to Project Properties and then typing rmic in the VM options at the Run after specifying the directory where HelloClass.class is located but it can’t seem to find the class.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:50:23+00:00Added an answer on May 30, 2026 at 7:50 pm

    As of Java 5 there is no need to use the rmic command for generating stubs, they will be generated dynamically for you, check this

    However, if you still want to support clients running on earlier version, run the command from the base directory of the compiled classes (in your case the directory that contains the “helloclass” directory) and use the class qualified name, e.g.: rmic helloclass.HelloClass

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm starting to learn about using Memcached with PHP and I was wondering; is
I'm trying to learn about java's event handlers and keep getting errors with type
i am currently trying to learn about clean urls. i was using windows once.
I'm using Agile Web Development with Rails to learn about Rails. In an early
Alright, I'm just trying to learn about using Contact information, but I'm a bit
I am starting to learn about makefiles. Looking at the output I see a
I'm starting to learn about COBOL. I have some experience writing programs that deal
Alright, so I'm starting to learn more about Coco2D, but I'm kinda frusterated. A
Just starting to learn ASP.NET (C#) and I am using Visual Studio 2008. I
I'm just starting to learn about jQuery. I'm more of a html+css web designer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.