summaryrefslogtreecommitdiffstats
path: root/base/jdk/jdk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'base/jdk/jdk.sh')
-rw-r--r--base/jdk/jdk.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/base/jdk/jdk.sh b/base/jdk/jdk.sh
new file mode 100644
index 000000000..48ec6753e
--- /dev/null
+++ b/base/jdk/jdk.sh
@@ -0,0 +1,21 @@
+# Begin /etc/profile.d/jdk.sh
+
+# Set JAVA_HOME directory
+JAVA_HOME=/opt/jdk
+
+# Adjust PATH
+pathappend ${JAVA_HOME}/bin PATH
+
+# Auto Java CLASSPATH
+# Copy jar files to, or create symlinks in this directory
+AUTO_CLASSPATH_DIR=/usr/lib/classpath
+pathprepend . CLASSPATH
+for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
+ pathappend $dir CLASSPATH
+done
+
+export JAVA_HOME CLASSPATH
+unset AUTO_CLASSPATH_DIR
+unset dir
+
+# End /etc/profile.d/jdk.sh