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 10.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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. <!-- XXX removed references to ajdoc and ajdb -->
  142. <li><CODE>ajbrowser</CODE>: a graphical editor for
  143. compiling programs with <CODE>ajc</CODE>
  144. and navigating the crosscutting structure of those programs</li>
  145. </ul>
  146. <li>the directory <a href="lib"><CODE>&lt;aspectj install dir&gt;/lib</CODE></a>
  147. has the AspectJ binaries,
  148. <ul>
  149. <li><CODE><a href="lib/aspectjtools.jar">aspectjtools.jar</a></CODE>: libraries for
  150. <code>ajc</code>, <code>ajbrowser</code>, and the Ant tasks</li>
  151. <li><CODE>aspectjrt.jar</CODE>: runtime library for AspectJ programs</li>
  152. </ul>
  153. </li>
  154. <li>the directory <a href="doc"><CODE>&lt;aspectj install dir&gt;/doc</CODE></a>
  155. has examples, programming and development environment guides,
  156. instructions for the Ant tasks, a README for 1.1 changes,
  157. and a quick reference, all linked
  158. from the <a href="doc/index.html">index</a> page.
  159. </li>
  160. <li>this <a href="README-AspectJ.html">README-AspectJ.html</a>, and
  161. </li>
  162. <li>the <a href="LICENSE-AspectJ.html">LICENSE-AspectJ.html</a>
  163. applying to this distribution.
  164. </li>
  165. </UL>
  166. <hr>
  167. <h3>2 Install Procedure</h3>
  168. <p>The AspectJ tools <code>ajc</code> and <code>ajbrowser</code> are
  169. Java programs that can be run indirectly from the scripts or
  170. directly from <code>aspectjtools.jar</code>.
  171. The <code>aspectjrt.jar</code> needs to be on the classpath
  172. when compiling or running programs compiled
  173. by <code>ajc</code>. This procedure shows ways to do that.
  174. </p>
  175. <p>After finishing automatic installation, we recommend that the
  176. following steps to complete your installation:</p>
  177. <p><b>2.1 Add <CODE>&lt;aspectj install dir&gt;/lib/aspectjrt.jar</CODE>
  178. to your class path</b></p>
  179. <blockquote>
  180. <p>This small .jar file contains classes required to compile programs
  181. with the ajc compiler, and to run programs compiled with the ajc
  182. compiler. You must have these classes somewhere on your class path
  183. when running programs compiled with ajc. For detailed instructions
  184. please see the <a href="#configInstructions">Configuration
  185. Instructions</a> at the bottom of this document.</p>
  186. </blockquote>
  187. <p><b>2.2 Put the AspectJ <code>bin</code> directory on your PATH</b></p>
  188. <blockquote>
  189. <p>Modify your PATH to include <code><b>&lt;aspectj install
  190. dir&gt;/bin</b></code>. This will make it easier to run ajc.
  191. For detailed instructions please see the
  192. <a href="#configInstructions">Configuration Instructions</a> at the
  193. bottom of this document.</p>
  194. </blockquote>
  195. <p><b>2.3 Review the documentation and examples </b></p>
  196. <blockquote>
  197. <p>Development and programming guides
  198. are available in <a href="doc/index.html">docs</a>,
  199. and example programs and an Ant script are available in
  200. <a href="doc/examples/">examples</a>.
  201. </blockquote>
  202. <p>If you did not use the automatic installation process, you may wish
  203. to create short launch scripts to start ajc easily (section 3).</p>
  204. <hr>
  205. <h3>3. Running the Tools</h3>
  206. <p>If you did not use the automatic installation process or the
  207. default launch scripts do not work on your system, you may wish to
  208. create short launch scripts to start ajc easily. </p>
  209. <p>You can also run the <code>aspectjtools.jar</code> directly
  210. using java's -jar option:
  211. <blockquote>
  212. <CODE>C:\jdk1.3\bin\java.exe -jar D:\aspectj\lib\aspectjtools.jar %*</CODE>
  213. </blockquote>
  214. <p>With no arguments or only argument list (.lst) files, this will launch
  215. <code>ajbrowser</code>, the GUI structure browser; otherwise, it will
  216. run <code>ajc</code>, the AspectJ compiler. This means that
  217. if your browser is set up to run jar files, clicking a link
  218. to <a href="lib/aspectjtools.jar">lib/aspectjtools.jar</a> will
  219. launch <code>ajbrowser</code>.
  220. <p> You can also create scripts like those created by the installer.
  221. These scripts use full paths that are system dependent so you will
  222. likely have to change these. </p>
  223. <p>Here's a sample launch script for WinNT and Win2K (note that this
  224. is single line in the .bat file):</p>
  225. <blockquote>
  226. <CODE>C:\jdk1.3\bin\java.exe -classpath D:\aspectj\lib\aspectjtools.jar -Xmx64M
  227. org.aspectj.tools.ajc.Main %*</CODE>
  228. </blockquote>
  229. <p>Here's a sample launch script for a Unix shell (on Linux using Sun's JDK1.3):</p>
  230. <blockquote>
  231. <CODE>/usr/java/jdk1.3/jre/bin/java -classpath /home/aspectj/lib/aspectjtools.jar -Xmx64M org.aspectj.tools.ajc.Main "$@"</CODE>
  232. </blockquote>
  233. <hr>
  234. <h3><a name="configInstructions">4. Configuration Instructions</a></h3>
  235. <h4>4.1 Adding <code>&lt;aspectj install dir&gt;/lib/aspectjrt.jar</code> to your classpath</h4>
  236. <p>There are several ways to add this jar file to your classpath:</p>
  237. <ul>
  238. <li>
  239. copy <code>aspectjrt.jar</code> to the <code>jdk/jre/lib/ext</code> directory</li>
  240. <li>
  241. add <code>aspectjrt.jar</code> to your CLASSPATH
  242. environment variable (see the next section for details)</li>
  243. <li>
  244. always use the "<code>-classpath aspectjrt.jar</code>" option when running
  245. programs compiled with ajc</li>
  246. </ul>
  247. <h4>4.2 <A NAME="6.1">Setting the Environment Variables on Windows</A></h4>
  248. <P>The following instructions use the PATH variable as an example, but
  249. this process is identical for the CLASSPATH variable. </P>
  250. <P>You can do the variables permanently for all the shells that you
  251. will run or temporarily only for the current shell. To change the
  252. PATH only in the current shell, and assuming you've installed AspectJ
  253. in <code>C:\apps\aspectj</code>, type:</P>
  254. <blockquote><code>&gt; set PATH=%PATH%;C:\apps\aspectj\bin</code></blockquote>
  255. <P><b>Changing Environment Variables Permanently on WinNT and Win2000</b>
  256. <ul>
  257. <li>
  258. <p class="paragraph">open the Environment Variables dialog
  259. <ul>
  260. <li>
  261. <p class="paragraph">WinNT: in "Control Panels" double-click
  262. "System" and select the "Environment" tab</li>
  263. <li>
  264. <p class="paragraph">Win2K: in "Control Panels" double-click
  265. "System", select the "Advanced" tab and click the
  266. "Environment Variables..." button</li>
  267. </ul>
  268. </li>
  269. <li>
  270. <p class="paragraph">select the environment variable for editing, or add it
  271. using the "New..." button if it does not exist</li>
  272. <li>
  273. <p class="paragraph">add the new entry separated from the others by a
  274. semi-colon (;) and close the dialog</li>
  275. <li>
  276. <p class="paragraph">note that the change will not affect shells that were
  277. already running </li>
  278. </ul>
  279. <P><b>Changing Environment Variables Permanently on Win9x</b>
  280. <ul>
  281. <li>
  282. <p class="paragraph">open the AUTOEXEC.BAT with an editor such as NotePad</li>
  283. <LI>
  284. <p class="paragraph">edit the PATH statement to include the new entry and save
  285. the file, e.g.<BR>
  286. <blockquote>
  287. <CODE>PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\DOS;C:\apps\aspectj\bin</CODE>
  288. </blockquote>
  289. </LI>
  290. <LI>
  291. <p class="paragraph">note that the change will not affect shells that were
  292. already running
  293. </ul>
  294. </body>
  295. </html>