The invention discloses a novel script development method based on a JVM (
Java Virtual Machine), which comprises the following steps of: S1, setting a script permission
list and a script forbidding
list in a
system configuration file, setting an initial variable and configuration information of a script, and monitoring the change of the configuration file by using an observer mode; s2, collecting external input data by utilizing a
response type programming library, performing conversion
processing by taking the external input data as an event, and adding the external input data into a script running context; s3, analyzing script contents into marks and nodes, and constructing an
abstract syntax tree; s4, checking whether the variables of the
abstract syntax tree accord with the permission and prohibition lists in the configuration file or not; s5, traversing the
abstract syntax tree, and executing node logic of the
abstract syntax tree; and S6, collecting execution results of all nodes, and returning the results to a caller. According to the method, configuration changes are monitored through an observer mode,
syntax analysis and
security check are carried out in combination with an
abstract syntax tree, and the functions of script online development and real-time adjustment are achieved.