Changeset 9255931 for general/prog/jdk/j2sdk-config.xml
- Timestamp:
- 01/25/2004 02:38:24 AM (20 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 7426781
- Parents:
- 1fdbdb4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/jdk/j2sdk-config.xml
r1fdbdb4 r9255931 28 28 </sect3> 29 29 30 <sect3><title>Handling CLASSPATH</title> 31 32 <para>When compiling packages, the <envar>CLASSPATH</envar> environment variable 33 is used JDK to locate classes at compile-time and run-time. It is tedious to 34 add all the classes used to the <envar>CLASSPATH</envar> manually. You may add 35 the following lines to your shell startup file to set <envar>CLASSPATH</envar> 36 automatically to include all JAR files in a specified directory, which in 37 the example below is <filename>/usr/lib/auto-java-classpath</filename>.</para> 38 39 <screen><userinput>AUTO_CLASSPATH_DIR=/usr/lib/auto-java-classpath 40 if [ -z $CLASSPATH ] 41 then 42 CLASSPATH=.:$AUTO_CLASSPATH_DIR 43 else 44 CLASSPATH=$CLASSPATH:.:$AUTO_CLASSPATH_DIR 45 fi 46 for i in $(ls $AUTO_CLASSPATH_DIR/*.jar 2>/dev/null) 47 do 48 CLASSPATH=$CLASSPATH:$i 49 done</userinput></screen> 50 51 </sect3> 52 30 53 </sect2> 31 54
Note:
See TracChangeset
for help on using the changeset viewer.