You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README-AspectJ.html 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  5. <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
  6. <meta name="ProgId" content="FrontPage.Editor.Document">
  7. <title>AspectJ Readme</title>
  8. <STYLE TYPE="text/css">
  9. <!--
  10. /* FOR THE SDA PAGE */
  11. /*
  12. BODY {margin-top: 15px; margin-left: 15px; margin-right: 15px;}
  13. */
  14. A:link {
  15. color:#4756AC;
  16. }
  17. A:visited {
  18. color:#60657B;
  19. }
  20. A:hover {
  21. color:red
  22. }
  23. INPUT {font:12px "Courier New", sans-serif;}
  24. H2 {
  25. font:18px/18px Verdana, Arial, Helvetica, sans-serif;
  26. color:black;
  27. font-weight:bold;
  28. margin-left: 10px;
  29. line-height:110%;
  30. }
  31. H3 {
  32. font:18px/18px Verdana, Arial, Helvetica, sans-serif;
  33. color:black;
  34. font-weight:bold;
  35. margin-left: 10px;
  36. line-height:110%;
  37. }
  38. H4 {
  39. font:15px/16px Verdana, Arial, Helvetica, sans-serif;
  40. color:black;
  41. font-weight:bold;
  42. margin-left: 10px;
  43. line-height:140%;
  44. }
  45. P {
  46. font:13px/13px Verdana, Arial, Helvetica, sans-serif;
  47. margin-right: 10px;
  48. margin-left: 10px;
  49. line-height:130%;
  50. }
  51. .paragraph {
  52. font:13px/13px Verdana, Arial, Helvetica, sans-serif;
  53. margin-right: 10px;
  54. margin-left: 10px;
  55. line-height:130%;
  56. }
  57. .smallParagraph {
  58. font:11px/11px Verdana, Arial, Helvetica, sans-serif;
  59. margin-right: 10px;
  60. margin-left: 10px;
  61. line-height:130%;
  62. }
  63. /*
  64. LI {
  65. font:13px/13px Verdana, Arial, Helvetica, sans-serif;
  66. text-align:justify;
  67. margin-right: 10px;
  68. margin-left: 15px;
  69. line-height:120%;
  70. }
  71. UL {
  72. font:13px/13px Verdana, Arial, Helvetica, sans-serif;
  73. text-align:justify;
  74. margin-right: 10px;
  75. margin-left: 15px;
  76. line-height:120%;
  77. }*/
  78. DL {
  79. font:13px/13px Verdana, Arial, Helvetica, sans-serif;
  80. text-align:justify;
  81. margin-right: 10px;
  82. margin-left: 15px;
  83. line-height:120%;
  84. }
  85. B { font:13px/13px Verdana, Arial, Helvetica, sans-serif;
  86. font-weight:bold;
  87. line-height:140%;
  88. }
  89. .footer {
  90. font:10px/10px Verdana, Arial, Helvetica, sans-serif;
  91. color:#888888;
  92. text-align:left
  93. }
  94. .figureTitle {
  95. font:13px/13px Verdana, Arial, Helvetica, sans-serif;
  96. text-align:justify;
  97. text-align:center
  98. }
  99. .copyrightNotice {
  100. font:10px/10px Verdana, Arial, Helvetica, sans-serif;
  101. color:#999999;
  102. line-height:110%;
  103. }
  104. .smallHeading {
  105. font:13px/13px Verdana, Arial, Helvetica, sans-serif;
  106. font-weight:bold;
  107. line-height:110%;
  108. }
  109. .tinyHeading {
  110. font:11px/11px Verdana, Arial, Helvetica, sans-serif;
  111. font-weight:bold;
  112. line-height:120%;
  113. }
  114. .newsText {
  115. font:11px/11px Verdana, Arial, Helvetica, sans-serif;
  116. line-height:130%;
  117. }
  118. .smallParagraph {
  119. font:11px/11px Verdana, Arial, Helvetica, sans-serif;
  120. line-height:130%;
  121. }
  122. .fancyHeading {
  123. font:20px/20px Chantilly, Arial, Helvetica, sans-serif;
  124. margin-right: 10px;
  125. color:#6f7a92;
  126. margin-left: 10px;
  127. line-height:130%;
  128. }
  129. -->
  130. </STYLE>
  131. </head>
  132. <BODY BGCOLOR="white">
  133. <h2 align="center">AspectJ<sup><small>TM</small></sup></h2>
  134. <p align="center"><i>Version @build.version.long@ released on @build.date@.</i></p>
  135. <h3>1 Contents of this Package</h3>
  136. <UL>
  137. <li>the <a href="bin"><CODE>&lt;aspectj install dir&gt;/bin</CODE></a>
  138. directory has scripts for
  139. <ul>
  140. <li><CODE>ajc</CODE>: the compiler for the AspectJ language</li>
  141. <li>the directory <a href="lib"><CODE>&lt;aspectj install dir&gt;/lib</CODE></a>
  142. has the AspectJ binaries,
  143. <ul>
  144. <li><CODE><a href="lib/aspectjtools.jar">aspectjtools.jar</a></CODE>: libraries for
  145. <code>ajc</code>, <code>ajbrowser</code>, and the Ant tasks</li>
  146. <li><CODE>aspectjrt.jar</CODE>: runtime library for AspectJ programs</li>
  147. </ul>
  148. </li>
  149. <li>the directory <a href="doc"><CODE>&lt;aspectj install dir&gt;/doc</CODE></a>
  150. has examples, programming and development environment guides,
  151. instructions for the Ant tasks, a README for 1.1 changes,
  152. and a quick reference, all linked
  153. from the <a href="doc/index.html">index</a> page.
  154. </li>
  155. <li>this <a href="README-AspectJ.html">README-AspectJ.html</a>, and
  156. </li>
  157. <li>the <a href="LICENSE-AspectJ.html">LICENSE-AspectJ.html</a>
  158. applying to this distribution.
  159. </li>
  160. </UL>
  161. <hr>
  162. <h3>2 Install Procedure</h3>
  163. <p>The AspectJ tool <code>ajc</code> is a
  164. Java program that can be run indirectly from the scripts or
  165. directly from <code>aspectjtools.jar</code>.
  166. The <code>aspectjrt.jar</code> needs to be on the classpath
  167. when compiling or running programs compiled
  168. by <code>ajc</code>. This procedure shows ways to do that.
  169. </p>
  170. <p>After finishing automatic installation, we recommend that the
  171. following steps to complete your installation:</p>
  172. <p><b>2.1 Add <CODE>&lt;aspectj install dir&gt;/lib/aspectjrt.jar</CODE>
  173. to your class path</b></p>
  174. <blockquote>
  175. <p>This small .jar file contains classes required to compile programs
  176. with the ajc compiler, and to run programs compiled with the ajc
  177. compiler. You must have these classes somewhere on your class path
  178. when running programs compiled with ajc. For detailed instructions
  179. please see the <a href="#configInstructions">Configuration
  180. Instructions</a> at the bottom of this document.</p>
  181. </blockquote>
  182. <p><b>2.2 Put the AspectJ <code>bin</code> directory on your PATH</b></p>
  183. <blockquote>
  184. <p>Modify your PATH to include <code><b>&lt;aspectj install
  185. dir&gt;/bin</b></code>. This will make it easier to run ajc.
  186. For detailed instructions please see the
  187. <a href="#configInstructions">Configuration Instructions</a> at the
  188. bottom of this document.</p>
  189. </blockquote>
  190. <p><b>2.3 Review the documentation and examples </b></p>
  191. <blockquote>
  192. <p>Development and programming guides
  193. are available in <a href="doc/index.html">docs</a>,
  194. and example programs and an Ant script are available in
  195. <a href="doc/examples/">examples</a>.
  196. </blockquote>
  197. <p>If you did not use the automatic installation process, you may wish
  198. to create short launch scripts to start ajc easily (section 3).</p>
  199. <hr>
  200. <h3>3. Running the Tools</h3>
  201. <p>If you did not use the automatic installation process or the
  202. default launch scripts do not work on your system, you may wish to
  203. create short launch scripts to start ajc easily.</p>
  204. <p> You can also create scripts like those created by the installer.
  205. These scripts use full paths that are system dependent so you will
  206. likely have to change these. </p>
  207. <p>Here's a sample launch script for WinNT and Win2K (note that this
  208. is single line in the .bat file):</p>
  209. <blockquote>
  210. <CODE>C:\jdk1.3\bin\java.exe -classpath D:\aspectj\lib\aspectjtools.jar -Xmx64M
  211. org.aspectj.tools.ajc.Main %*</CODE>
  212. </blockquote>
  213. <p>Here's a sample launch script for a Unix shell (on Linux using Sun's JDK1.3):</p>
  214. <blockquote>
  215. <CODE>/usr/java/jdk1.3/jre/bin/java -classpath /home/aspectj/lib/aspectjtools.jar -Xmx64M org.aspectj.tools.ajc.Main "$@"</CODE>
  216. </blockquote>
  217. <hr>
  218. <h3><a name="configInstructions">4. Configuration Instructions</a></h3>
  219. <h4>4.1 Adding <code>&lt;aspectj install dir&gt;/lib/aspectjrt.jar</code> to your classpath</h4>
  220. <p>There are several ways to add this jar file to your classpath:</p>
  221. <ul>
  222. <li>
  223. copy <code>aspectjrt.jar</code> to the <code>jdk/jre/lib/ext</code> directory</li>
  224. <li>
  225. add <code>aspectjrt.jar</code> to your CLASSPATH
  226. environment variable (see the next section for details)</li>
  227. <li>
  228. always use the "<code>-classpath aspectjrt.jar</code>" option when running
  229. programs compiled with ajc</li>
  230. </ul>
  231. <h4>4.2 <A NAME="6.1">Setting the Environment Variables on Windows</A></h4>
  232. <P>The following instructions use the PATH variable as an example, but
  233. this process is identical for the CLASSPATH variable. </P>
  234. <P>You can do the variables permanently for all the shells that you
  235. will run or temporarily only for the current shell. To change the
  236. PATH only in the current shell, and assuming you've installed AspectJ
  237. in <code>C:\apps\aspectj</code>, type:</P>
  238. <blockquote><code>&gt; set PATH=%PATH%;C:\apps\aspectj\bin</code></blockquote>
  239. <P><b>Changing Environment Variables Permanently on WinNT and Win2000</b>
  240. <ul>
  241. <li>
  242. <p class="paragraph">open the Environment Variables dialog
  243. <ul>
  244. <li>
  245. <p class="paragraph">WinNT: in "Control Panels" double-click
  246. "System" and select the "Environment" tab</li>
  247. <li>
  248. <p class="paragraph">Win2K: in "Control Panels" double-click
  249. "System", select the "Advanced" tab and click the
  250. "Environment Variables..." button</li>
  251. </ul>
  252. </li>
  253. <li>
  254. <p class="paragraph">select the environment variable for editing, or add it
  255. using the "New..." button if it does not exist</li>
  256. <li>
  257. <p class="paragraph">add the new entry separated from the others by a
  258. semi-colon (;) and close the dialog</li>
  259. <li>
  260. <p class="paragraph">note that the change will not affect shells that were
  261. already running </li>
  262. </ul>
  263. <P><b>Changing Environment Variables Permanently on Win9x</b>
  264. <ul>
  265. <li>
  266. <p class="paragraph">open the AUTOEXEC.BAT with an editor such as NotePad</li>
  267. <LI>
  268. <p class="paragraph">edit the PATH statement to include the new entry and save
  269. the file, e.g.<BR>
  270. <blockquote>
  271. <CODE>PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\DOS;C:\apps\aspectj\bin</CODE>
  272. </blockquote>
  273. </LI>
  274. <LI>
  275. <p class="paragraph">note that the change will not affect shells that were
  276. already running
  277. </ul>
  278. </body>
  279. </html>