Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 872 Bytes

customizelibraries.md

File metadata and controls

21 lines (17 loc) · 872 Bytes

Customizing libraries:

Note: Libraries are mainly loaded by Class-Path

An example of using custom libraries:

Default Libraries:

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 be 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.2 to the list: libraries_black_list: asm-debug-all-5.2;bbbbbb
  • You have completed all the steps and can run mohist

Custom Libraries:

Add additional jars as libraries

  • Put your jar file into\libraries\customize_libraries
  • You have completed all the steps and can run mohist