ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  PostgreSQL for Mac OS X
Subject:   CLASSPATH: Undefined variable.
Date:   2002-06-26 19:44:24
From:   mbrewer
I got an e-mail from one of the readers of this article that described difficulty they had setting their classpath -- they got an error stating that classpath was an undefined variable. In the article, I recommended setting the classpath with the following command:


setenv CLASSPATH ${CLASSPATH}:/Library/Java/Extensions/postgresql.jar:.


I do not remember having trouble with this command under Mac OS X 10.1.4. However, I received the reader's e-mail after upgrading to 10.1.5 and am able to reproduce it in that version. What you need to do since classpath might not already be defined is type the following instead of what appears in the article.


setenv CLASSPATH /Library/Java/Extensions/postgresql.jar:.