English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm using Windows2003 Server and i cant find d classpath variable ampnog my environment variables, and i need to use a third party API

2007-07-18 05:25:43 · 1 answers · asked by jideolat 1 in Computers & Internet Programming & Design

1 answers

You can do any of:
* Create the CLASSPATH environment variable if it is missing.
* Specify the classpath on the command-line when you run java ("java -cp [your classpath] ...").
* Place the .jars into (your JRE location)\lib\ext where the runtime will automatically pick them up.

The first and third options (changing CLASSPATH environment variable, adding to lib/ext) have the side-effect of adding the .jars in question to all things that you run with this Java runtime environment. There are cases where that may not be what you want to do, for example if you need to work with multiple (mutually incompatible) versions of the same .jars, but if you don't have that issue, those are the low-maintenance solutions.

2007-07-18 06:35:41 · answer #1 · answered by McFate 7 · 0 0

fedest.com, questions and answers