py5_tools.get_classpath()#

Get the Java classpath.

Examples#

import py5_tools

py5_tools.add_jars('path/to/project_jars')
py5_tools.add_classpath('path/to/jar/file/java_code.jar')

import py5

py5.println(py5_tools.get_classpath())

Description#

Get the Java classpath. If the JVM has not yet started, this will list the jars that have been added 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.

Signatures#

get_classpath() -> str

Updated on September 01, 2022 16:36:02pm UTC