Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Endorsed libraries, classpath

5 views
Skip to first unread message

Krishnan Raghu

unread,
Apr 2, 2004, 9:21:07 PM4/2/04
to
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

Hans Kratz

unread,
Apr 3, 2004, 5:28:19 AM4/3/04
to
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

Krishnan Raghu

unread,
Apr 3, 2004, 12:24:33 PM4/3/04
to

"Hans Kratz" <kr...@omnicore.com> wrote in message
news:c4m3jv$2jcgus$2...@ID-158374.news.uni-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

0 new messages