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

  • SEARCH
  • Home
  • 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 8816771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:41:41+00:00 2026-06-14T04:41:41+00:00

I’ve inherited a Java project which is aimed at being a platform for multi-agent

  • 0

I’ve inherited a Java project which is aimed at being a platform for multi-agent development. The idea is that you can create “applications” which run on the platform. I’m looking for a way to distribute the base platform such that the end users can add applications (likely packaged in jars) to a predefined folder, add a reference to the existence of said jar to some manifest file that the platform reads, and can therefore access files from it.

I’ve looked at the following answers, but these seem to require that the platform code know the names of classes at design-time:

  • Read .jar file in Java applet

  • Is there a way to load classes jars and packages on run time?

Ideally, I’d like the following structure to work:

  • Main directory: platform.jar, apps.manifest, Apps (directory)
  • Apps/App1/app1.jar, Apps/App2/app2.jar, …, Apps/AppN/appN.jar

apps.manifest will contain entries for each app, which will include the path to the jar, and the name of the class which is the main Application (implementing a common interface) object.

In my main code in platform.jar, I would like to read the manifest, notice that there are N applications, and be able to call ApplicationOne appOne = new ApplicationOne(this) where ApplicationOne is the name of the primary application object in app1.jar, and this is a reference to the object from platform.jar which holds the reference to the application.

If all the jars (platform.jar and the application jars) were all in the user’s classpath, would it all work as above? If so, is there a way to temporarily add a directory (and all subdirectories) to the user’s classpath in Java, which I could run when I run platform.jar? I ask temporarily because the enclosing folder should be movable on the file system.

Any advice on the issue appreciated, as well as any advice on improving the question so it’s clearer and easier to read.

Thanks

  • 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-14T04:41:42+00:00Added an answer on June 14, 2026 at 4:41 am

    Sounds like the ServiceLoader API may be of use.

    A service is a well-known set of interfaces and (usually abstract)
    classes. A service provider is a specific implementation of a service.
    The classes in a provider typically implement the interfaces and
    subclass the classes defined in the service itself. Service providers
    can be installed in an implementation of the Java platform in the form
    of extensions, that is, jar files placed into any of the usual
    extension directories.

    See this blog entry on its usage

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into

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.