[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]


Andrew Rosenbaum wrote:
Could someone please explain to this horrendous newbie what a CLASS PATH is, or rather where it is, or how you find it?

Programs keep telling me to define it.

Hi Andrew,

I would have to guess that the programs you refer to are Java apps.

CLASSPATH is an environment variable that tells the Java classloader where to look for class definitions (byte-code files, usually named something.class or something.jar)

For example, at some-machine I got $CLASSPATH set to

in order to be able to use the postgresql jdbc libraries from Java.

You can see what CLASSPATH is set to by running

In bash (which is probably what you run at the command line) you would set CLASSPATH like

export CLASSPATH=/path/to/some/java/libs

If none of this makes any sence yet, maybe you could give us the name of the application and the exact error message, and we can help more specifically.



PS: I would appreciate it if you could please post in plain text, rather than in HTML.

Andrey Andreev
University of Helsinki
Dept. of Computer Science

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]