Can't resolve import org.knime.core.node.port.PortObject$PortObjectSerializer

I’m not able to resolve this import:
image
I can’t find it to add to my dependencies… Any ideas?
image

Hi @azsb1g19,

You can’t import classes with $. The correct import is: org.knime.core.node.port.PortObject.PortObjectSerializer
The class is part of org.knime.core which you should have already as a dependency.

best,
Gabriel

Hi @gab1one, I’ve tried this but I haven’t been able to resolve the issue.
image
image
image

Hi @azsb1g19,

  1. This class is located in the org.knime.core bundle, so make sure to add that one as a dependency.
  2. Please do not depend on source bundles, e.g. org.knime.core.wizard.souce they only contain source code and are not meant as runtime dependencies.

best,
Gabriel

Thanks @gab1one how do I do add org.knime.core as a dependency? It’s not available in the plug-in selection dialog .
image