summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/classpath-from-jars-112
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/classpath-from-jars-1 b/examples/classpath-from-jars-1
new file mode 100644
index 0000000..bea5802
--- /dev/null
+++ b/examples/classpath-from-jars-1
@@ -0,0 +1,12 @@
+# No shebang here: you have to source this file or to include
+# it into a shell startup file, since it changes the environment.
+# Bourne shell syntax.
+
+# From: Aaron Brashears <gila@gila.org>
+
+for jar in /usr/share/java/*.jar ; do
+ CLASSPATH=${CLASSPATH}:$jar
+done
+
+
+