Results 1 to 2 of 2
  1. #1
    driiper is offline Member
    Join Date
    Apr 2012
    Posts
    25
    Rep Power
    0

    Default ClassLoaders in java.

    Hello!

    I have alot of project which all runs on the same server. And keeping these servers up to date is abit of a hassle.

    So i had this idea.

    What if i could create a software that automatically ran updated servers for me (Thinking via classLoader).
    I have been searching on then net for a while, and i cant really get my head around the concept of classloaders. But from what i gather it does what the name says: loading Classes.

    so my questions are:
    1. is it possible to load a Jar, so it actually runs like it would with executing the jar.
    2. do anyone have a example of this?
    3. Is there any better way of doing this?

    Thanks
    Driiper

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,457
    Rep Power
    25

    Default Re: ClassLoaders in java.

    is it possible to load a Jar, so it actually runs like it would with executing the jar.
    A class loader reads bytes from a file and passes them to methods that makes a class out of them.
    If the jar contained class files, then you should be able to read them and have them loaded into memory as classes.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 8
    Last Post: 03-27-2013, 09:30 AM

Posting Permissions

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