CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Posts
    114

    Question Loading external modules written in Java.

    In other languages like C++, it is possible to write libraries that can be loaded and unloaded at runtime, making it possible to add functionality to the program merely by placing third party modules or plugins in the same directory as the program. However, I don't know how to do this in Java. I have searched the internet looking for a way to accomplish this, but I could not find a straightfoward explination of how to write libraries in Java and load them at runtime. I am not looking for a prewritten framework that enables me to do this. I want to implement it myself. Is there a solution for this?

  2. #2
    Join Date
    May 2009
    Posts
    2,413

    Re: Loading external modules written in Java.

    Quote Originally Posted by Guidosoft View Post
    Is there a solution for this?
    Yes, classloaders,

    http://en.wikipedia.org/wiki/Java_Classloader

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured