Novell is now a part of Micro Focus

Running on a JSP WebSphere, Adding .JAR Files to the Websphere Classpath

Articles and Tips: tip

Allen Carter
Novell Developer Support

01 Feb 2001

If you want to run on a JSP WebSphere:

Copy your JSP into the (mapped drive): \WebSphere\AppServer\hosts\default_host\examples\web directory.

In a browser, type in http://(IP Address)/webapp/examples/jsp name. This will run the JSP in WebSphere.

Websphere 3.02 supports JSP versions .91 and 1.0.

Adding .JAR Files to the Websphere Classpath WebSphere has its own file used for the classpath information. The file is called admin.config and is in the (mapped drive):\WebSphere\AppServer\bin directory.

To add your .JAR file to the Websphere classpath:

Open the admin.config file with a text editor.

Add your classpath after This is located on the first line after the comments. Note that the forward slash (/) is used in the path description, which is different than the java.cfg file. Don't edit the file with the Edit program on the server, as this will corrupt the file.

After saving the changes, restart Websphere so that the changes can take effect.

The additions to the classpath can be verified from a browser by typing http://(IP Address)/webapp/examples/showCfg, then by scrolling down to the System Properties section.

* Originally published in Novell AppNotes


The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates