The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Accessing a class within a .jar file

Posted by Jody Brown on October 03, 2000 at 4:21 AM

Laax

Add the .jar file to your system classpath. The JVM will then
be able to reference the class(es) inside it.

Hope this helps,

Jody


> Hi,

> I want my servlet to access a class. The class already
> present in a .jar file. How to make my servlet to refer to
> that .class file?

> Thanks in advance.

> Laax.






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us