eclipse正常运行时插件失败



eclipse应用程序(特别是kname(通常会采用哪些方式"未能创建";当我安装一个jar时,一个类。该类似乎没有任何问题,因为它使用run-as工具在eclipse中运行。当我作为插件导出或创建更新网站时,最终的插件会失败。类文件位于此错误代码段下方。

***欢迎使用KNIME Analytics Platform v4.3.2.v202103051236******版权所有KNIME AG,苏黎世,瑞士***

错误无法创建插件"org.knime.examples.numberformatter"中的RepositoryManager节点"org.knme.examples.numberformatter.NodeFactory"。无法激活相应的插件捆绑包!

package org.knime.examples.numberformatter;
import org.knime.core.node.NodeDialogPane;
import org.knime.core.node.NodeFactory;
import org.knime.core.node.NodeView;
/**
* This is an example implementation of the node factory of the
* "NumberFormatterNode".
* 
* The node factory creates all classes the make up a node. Furthermore, it specifies if the
* node has views or a dialog (both are optional). 
*
* @author KNIME GmbH, Konstanz, Germany
*/
public class NumberFormatterNodeFactory extends NodeFactory<NumberFormatterNodeModel> {
/**
* {@inheritDoc}
*/
@Override
public NumberFormatterNodeModel createNodeModel() {
// Create and return a new node model.
return new NumberFormatterNodeModel();
}
/**
* {@inheritDoc}
*/
@Override
public int getNrNodeViews() {
// The number of views the node should have, in this cases there is none.
return 0;
}
/**
* {@inheritDoc}
*/
@Override
public NodeView<NumberFormatterNodeModel> createNodeView(final int viewIndex,
final NumberFormatterNodeModel nodeModel) {
// We return null as this example node does not provide a view. Also see "getNrNodeViews()".
return null;
}
/**
* {@inheritDoc}
*/
@Override
public boolean hasDialog() {
// Indication whether the node has a dialog or not.
return true;
}
/**
* {@inheritDoc}
*/
@Override
public NodeDialogPane createNodeDialogPane() {
// This example node has a dialog, hence we create and return it here. Also see "hasDialog()".
return new NumberFormatterNodeDialog();
}
}

已解决。目标项目jre需要匹配knime jre版本。

最新更新