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

The Archive Base Latest Questions

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

I am trying to do some testing using RMI. I have a .jar file

  • 0

I am trying to do some testing using RMI.

I have a .jar file having the classes with methods I need to call. On my netbeans projects I have a class TestClient which has to connect to ShareBroker which is my Remote interface.
My problem is how to set the correct address for java.rmi.server.codebase and which address I need to have in my TestClient in order to lookup for ShareBrooker.

I have tried a number of different addresses and combinations but couldn’t get this to work.
For this test I need to have the codebase set on a local directory.

  • 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-30T18:40:22+00:00Added an answer on May 30, 2026 at 6:40 pm

    The java.rmi.server.codebase property is set at JVMs which export remote objects. Normally this is the server JVM.

    The codebase URLs have to refer to a directory or JAR file that is accessible by clients of this server. So it has to be either an HTTP or FTP URL referring to a web server that is accessible by the client, or a file: URL referring to the client’s local file system.

    In the latter case, (1) the server would have to know the layout of the client’s file systemic order to set the codebase property correctly, which presents a configuration difficulty, and (2) all it would be accomplishing is something that would just as well be accomplished by including that local directory/JAR file in the client’s CLASSPATH and leaving the codebase system out of it altogether.

    In other words there is absolutely no point in a codebase that refers to a local file system.

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

Sidebar

Related Questions

I've been trying to implement unit testing and currently have some code that does
I'm trying to do some scripted GUI testing in Windows using Ruby. I'm leveraging
I have been using selenium IDE to do some web app testing. I have
I am trying do some testing examples with Facebook and Flash (using the Adobe
I'm trying to port some ASP.Net code to mono. I am testing it using
I am trying to load some XML data into C++ code (classes) using gsoap.
I am trying to perform some unit testing on the iphone but for some
I am trying to do some Cucumber testing like the following: Given I am
I am trying to implement some unit testing for an old framework. I am
I'm trying to incorporate some JavaScript unit testing into my automated build process. Currently

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.