Skip to content

Dynamic Compilation that includes import statements #18

Description

@Brookd23

I am trying to compile a java file (https://github.com/mkl-public/testarea-itext7/blob/master/src/main/java/mkl/testarea/itext7/extract/TextPlusYExtractionStrategy.java) , but the imports are not working and throw errors:

`
import com.itextpdf.kernel.geom.Vector;

import com.itextpdf.kernel.pdf.canvas.parser.listener.LocationTextExtractionStrategy;

import com.itextpdf.kernel.pdf.canvas.parser.listener.TextChunk;
`

But I get errors like:

error: cannot find symbol public class TextPlusYExtractionStrategy extends LocationTextExtractionStrategy ^ symbol: class LocationTextExtractionStrategy

The itext7 jars are included in the loadPaths provided to the JavaLoader.. and are available if manually instantiated via create() but the import statements on a dynamic compile doesn't seem to be able to find them.. any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions