You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julian Halliwell edited this page May 9, 2025
·
3 revisions
For the current spreadsheet library instance, specifies how classes from the supporting java libraries should be loaded.
setLoadJavaClassesUsing( method )
Required arguments
methodstring: one of the following:
osgi: Classes will be loaded from the bundled lib-osgi.jar. The default for Lucee and only supported by Lucee.
JavaLoader: Classes will be loaded from the /lib folder via JavaLoader. The default for Adobe ColdFusion.
dynamicPath: Classes will be loaded from the /lib folder by passing the path as an argument to CreateObject(). Not supported by Adobe ColdFusion.
javaSettings or classPath: Classes will be loaded using CreateObject() with the assumption that you have made the contents of the /lib folder available to the engine via your application's javaSettings or by adding them to the class path.
Note
You can also pass in the value via the init() method.
Example 1
spreadsheet = New spreadsheetCFML.spreadsheet();
spreadsheet.setLoadJavaClassesUsing( "javaSettings" )
Example 2: via the init() method
spreadsheet = New spreadsheetCFML.spreadsheet( loadJavaClassesUsing="javaSettings" );