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 7763455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:39:49+00:00 2026-06-01T14:39:49+00:00

I do tutorial in following link: Java RMI Tutorial After I compile successfully three

  • 0

I do tutorial in following link: Java RMI Tutorial

After I compile successfully three files (interface, server and client) by hand, appear three classes in same folder. Then, I do like what tutorial say:

1) Start RMI server: start rmiregistry a new blank dos screen appear (maybe server is running, right ? )

2) Start server: start java -classpath classDir example.hello.Server: a flash dos screen appear (it so fast that I cannot see what they said !!!). But, at that site, they say, in command prompt will ouput Server ready. But, I don’t see (something wrong ?)

3) Start Client: java -classpath classDir example.hello.Client: a long list of parameters appear like I missing something, but it doesn’t say what I’m missing.

Please help me run this example.

Thanks 🙂

Edit: here is notice (if I run server and client without start command)

Error

  • 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-06-01T14:39:50+00:00Added an answer on June 1, 2026 at 2:39 pm

    When the tutorial says that you should run your server with

    start java -classpath classDir example.hello.Server
    

    It (erronously in this case) assumes you know you should replace classDir with your actual classpath. The command should look something more like this:

    start java -classpath "." example.hello.Server
    

    Assuming that all your classes are rooted relative to the directory you are running your commands from. As it is, you are omitting the classpath altogether, which causes the JVM to gobble your classname and interpret it as the classpath instead:

    java -classpath Server
    

    If you do not know how to determine and set your classpath then I will definitely recommend you start with more basic tutorials, instead of jumping straight into RMI.

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

Sidebar

Related Questions

I am following this tutorial and I've run the command ruby script\server and successfully
I am following this tutorial: link text Preferences.java: public class Preferences extends PreferenceActivity{ @Override
I'm following a tutorial on how to use Interface Builder from Chapter 2 of
I'm just learning django and following a tutorial. I have a Link and a
I'm using java 6 annotation processing api. I have followed the following excellent tutorial
I am fairly new to Java programming and was following a tutorial located here:
I am trying to create my own module, i followed the following tutorial: LINK
Following a tutorial on the internet regarding Soap development with Java, I found this
i am trying to run google map tutorial using following link http://mobiforge.com/developing/story/using-google-maps-android followed all
I'm new to PHP and I'm following a tutorial here: Link It's pretty scary

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.