Custom Libraries
Custom libraries:
Note: Libraries are mainly loaded via Class-Path
Example of using custom libraries:
Default libraries:
For example, Mohist has \libraries\org\ow2\asm\asm-debug-all\5.2\asm-debug-all-5.2.jar by default.
What if we need to update this library to 7.0?
- First, get
asm-debug-all-7.0.jar - Change the file name to
asm-debug-all-5.2.jar(because we need to keep it consistent with Class-Path) - Replace the old jar
- Modify the configuration in mohist.yml
- Find the default
libraries_black_list: aaaaa;bbbbbb - Add
asm-debug-all-5.2to the list:libraries_black_list: asm-debug-all-5.2;bbbbbb
- Find the default
- You've completed all the steps, you can now run Mohist
Custom libraries:
Add other jars as libraries
- Put your jar file into
\libraries\customize_libraries - You've completed all the steps, you can now run Mohist