AspectJ environment configuration

xiaoxiao2021-03-05  21

First download the latest aspectj, continue the following steps:

· Copy /lib/aspectjrt.jar file to / jre / lib / ext directory or add it to your ClassPath environment variable.

· Create a directory / bin and add it to the environment variable PATH, newly built two .bat files Ajc.bat and ajcbrowser.bat under the bin directory. (Name can be taken casually)

· Copy /bin/java.exe -classpath

• Copy /bin/java.exe -jar /lib/aspectjtools.jar to save, you can compile the code using the aspectj graphic browsing method, for example on the command line. Try AJCBROWSER Examples.lst.

Figure 1: AspectJ graphic editing compilation window Note: For your JDK installation directory, The file extension ".lst" is included ".lst" file contains all ASPECTJ applications The text file of the file path information (must be an absolute path name, there is no space or wrap in the middle of the two pathnames).

转载请注明原文地址:https://www.9cbs.com/read-38753.html

New Post(0)