Dynamic loading of jar files...

Discussion in 'Java' started by Reinhard Rossmy, Jul 28, 2003.

  1. Could I change my classpath at runtime? I'd like to load a jar file
    dynamically, without any instance of class!
    Knows anywhere the generic mechanismen of Java IDE Eclipse? I don't
    find the right place, shit.
    Thanks....
    Reinhard Rossmy, Jul 28, 2003
    #1
    1. Advertising

  2. lid (Thomas Weidenfeller) wrote in message news:<bg3ihv$f6s$>...
    > (Reinhard Rossmy) writes:
    > > Could I change my classpath at runtime?

    >
    > No, you can't. Well, you can change the properties, but they will not
    > become effective.
    >
    > > I'd like to load a jar file
    > > dynamically, without any instance of class!

    >
    > What do you mean with "load a jar file"? If you mean
    >
    > - Just reading some data (files, etc) from a jar:
    >
    > java.util.jar
    >
    > - Creating objects from classes in that jar:
    >
    > java.net.URLClassLoader can load classes from jar's, too.
    >
    > /Thomas


    Thank you for all answers...

    Point number one is clear.
    Point number two ...
    I'd like to tell my application at runtime a new jar file (maybe the
    same as setting all the *.jar's in classpath before running). I don't
    like to instance a class.
    I see the mechanism in the java ide eclipse.
    Reinhard Rossmy, Jul 29, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric McIntyre

    Jar files in Jar files

    Eric McIntyre, May 24, 2004, in forum: Java
    Replies:
    1
    Views:
    460
    Roedy Green
    May 24, 2004
  2. Arnold Peters
    Replies:
    0
    Views:
    553
    Arnold Peters
    Jan 5, 2005
  3. muttley
    Replies:
    0
    Views:
    2,688
    muttley
    Oct 20, 2005
  4. cyberco
    Replies:
    4
    Views:
    3,722
    Roedy Green
    Feb 14, 2006
  5. Arnold Peters
    Replies:
    0
    Views:
    637
    Arnold Peters
    Jan 5, 2005
Loading...

Share This Page