Re: CLASS PATH??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread 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
/usr/local/pgsql-7.4/jdbc.jar

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

You can see what CLASSPATH is set to by running
	
	echo $CLASSPATH

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.

Regards,

//Andro

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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux