py5_tools.get_classpath()#

Get the Java classpath.

Examples#

1import py5_tools
2
3py5_tools.add_jars('path/to/project_jars')
4py5_tools.add_classpath('path/to/jar/file/java_code.jar')
5
6import py5
7
8py5.println(py5_tools.get_classpath())

Description#

Get the Java classpath. If the JVM has not yet started, this will be the classpath the JVM will use when it does start. It will also be possible to change that classpath with py5_tools.add_classpath() and py5_tools.add_jars(). After the JVM has started, the classpath cannot be changed and the aformentioned functions would throw a RuntimeError. Use py5_tools.is_jvm_running() to first determine if the JVM is running.

Syntax#

get_classpath() -> str

Updated on September 11, 2021 16:51:34pm UTC