Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor grammar tweaks to "Adding things to the Classpath".

...

When running command line scripts or interactive shells you might want to add things to your classpath such as JDBC drivers or JMS implementations etc. Do To do this, you have a few choices:

  • add Add things to your CLASSPATH environment variable
  • pass Pass -classpath (or -cp) into the command you used to create the shell or run the script
  • It's also possible to create a ~/.groovy/lib directory and add whatever jars you need in there.
  • If the jars you need are in a Maven or Ivy repository, you can "grab" them with Grape.

...