> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# BeanshellUtil

public class [BeanshellUtil](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-beanshell-util.md)

Utility class to execute any arbitrary Beanshell script from native code and return an object that can be accessed via JNI.

#### Author

mbelcher

## Constructors

| | |
| - | - |
| [BeanshellUtil](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-beanshell-util/-beanshell-util) | constructor() |

## Functions

| Name | Summary |
| - | - |
| [runScript](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-beanshell-util/run-script) | public [runScript](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-beanshell-util/run-script)(bshScript: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), arg: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) Run the specified string as a beanshell script TODO in future: support passing in more than one argument. |
