Endorsed libraries, classpath

Discussion in 'Java' started by Krishnan Raghu, Apr 3, 2004.

  1. I have a few .jar files in C:\j2sdk1.4.2_03\jre\lib\endorsed that are
    required for an application that I'm coding. I currently run the application
    as follows:

    $> java AppRun

    Java adamantly requires the .jar files to only be in the endorsed\ directory
    for this to work.. But I would like my application to run with the .jar
    files being in the same directory as the application *without* having them
    in j2sdk/jre/lib/endorsed:
    $> java -classpath . AppRun

    (For instance, if AppRun.java and AppRun.class are in C:\work, I want to be
    able to move all the required .jar files currently in endorsed\ to inside
    C:\work and still get the application to run).

    Any suggestions?

    Thanks!
    Krishnan
     
    Krishnan Raghu, Apr 3, 2004
    #1
    1. Advertising

  2. Krishnan Raghu

    Hans Kratz Guest

    Krishnan Raghu wrote:
    > I have a few .jar files in C:\j2sdk1.4.2_03\jre\lib\endorsed that are
    > required for an application that I'm coding. I currently run the application
    > as follows:
    >
    > $> java AppRun
    >
    > [...]
    >
    > (For instance, if AppRun.java and AppRun.class are in C:\work, I want to be
    > able to move all the required .jar files currently in endorsed\ to inside
    > C:\work and still get the application to run).
    >
    > Any suggestions?


    java -Djava.endorsed.dirs="C:\work\endorsed" AppRun


    Best regards,


    Hans
    --
    Hans Kratz
    Omnicore Software
    http://www.omnicore.com
     
    Hans Kratz, Apr 3, 2004
    #2
    1. Advertising

  3. "Hans Kratz" <> wrote in message
    news:c4m3jv$2jcgus$-berlin.de...
    > Krishnan Raghu wrote:
    > > [...]
    > >
    > > (For instance, if AppRun.java and AppRun.class are in C:\work, I want to

    be
    > > able to move all the required .jar files currently in

    C:\j2sdk1.4.2_03\jre\lib\endorsed\ to inside
    > > C:\work and still get [AppRun] to run).
    > >
    > > Any suggestions?

    >
    > java -Djava.endorsed.dirs="C:\work\endorsed" AppRun
    >


    Very nice, thank you.

    -Krishnan
     
    Krishnan Raghu, Apr 3, 2004
    #3
    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. Chris Bedford
    Replies:
    1
    Views:
    7,087
    Chris Bedford
    Oct 6, 2003
  2. David Kensche

    java endorsed dirs ignored

    David Kensche, Feb 2, 2004, in forum: Java
    Replies:
    2
    Views:
    10,702
    David Zimmerman
    Feb 2, 2004
  3. Flip
    Replies:
    3
    Views:
    7,410
    Tony Morris
    Feb 9, 2004
  4. Frank Fredstone

    jdk 1.4.2 javac and java.endorsed dirs

    Frank Fredstone, Jun 22, 2006, in forum: Java
    Replies:
    0
    Views:
    1,408
    Frank Fredstone
    Jun 22, 2006
  5. E11
    Replies:
    0
    Views:
    558
Loading...

Share This Page