Ah right, I understand now. It's similar to what my earlier post said, but it's the
CLASSPATH variable you need to adjust (the
CLASSPATH variable controls where java looks for it's libraries & class files). You need to adjust the
CLASSPATH so that it searches the correct directories. You can use the command
to view what it's currently set to. To change it, use the command
Code:
export CLASSPATH=/usr/local/lib
or whatever the correct directories are; if there is more than one directory, separate them with a colon. (eg /usr/local/lib:/usr/lib).
If you want this setting to persist, you'll need to put the export statement into your shell init file (probably .bashrc).