How to use Lucee core classes inside of extension


#1

I have written an extension that makes use of the core classes lucee.runtime.type.ArrayImpl and also lucee.runtime.type.QueryImpl. Everything is working like I want it to but after packaging everything up into a ‘lex’ file and executing the extension I get java.lang.NoClassDefFoundError for ArrayImpl, I assume QueryImpl will give me the same thing.

Here is my MANIFEST.MF that gets included in my exported ‘jar’

Manifest-Version: 1.0
Class-Path: . commons-csv-1.5.jar
Bundle-SymbolicName: squidfoundry
Export-Package: squidfoundry;version=1.0.0
Bundle-Name: AwesomeExtension
Bundle-Version: 1.0.0
Built-By: brandon
Bundle-ManifestVersion: 2
Import-Package: lucee.runtime.type,org.apache.commons.csv
Created-By: brandon
Build-Jdk: 1.8

I am not sure if I need to add something extra to the manifest file to make it work


#2

I was able to get it to work by adding the line Require-Bundle: lucee.core