Loading Resources from Classpath

In BBj 25.12 and higher, you can load resources directly from a JAR in your classpath by using the !! prefix when referencing the resource. This syntax can be used anywhere a file path is used. Note that the resource will be loaded as a read-only resource, and cannot be modified or saved when loaded from a JAR in the classpath.

Syntax

!!<filepath>

Examples

>load "!!Choosers/ColorChooser/BBjColorChooser.src"

Note: Programs and resources referenced with the !! prefix must be packaged in a JAR file that is available on a Session-Specific Classpath (SSCP). To use such a resource, add the JAR to an SSCP and run the session with that SSCP. See: Session-Specific Classpath (SSCP)

See Also

LOAD Verb - Load File

RUN Verb - BBj

USE Verb

CALL Verb - BBj

RESOPEN() Function - Open Resource File

OPEN Verb - Open File BBj

PREFIX Verb - Set File System Search Paths - BBj

Session-Specific Classpath (SSCP)