py5_tools.get_classpath()

Get the Java classpath.

Examples

1
2
3
4
5
6
7
8
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 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