线程“main”中的异常java.lang.RuntimeException:无法编译的源代码 - 找不到符号

时间:2016-12-12 12:08:14

标签: java image-processing netbeans

我的脸部识别码存在问题。每次运行代码时都会出现错误:

public void addData(Number xValue, Number yValue){

        if(xValue.intValue() < 0 || xValue.intValue() > 3000 ||
                yValue.intValue() < 0 || yValue.intValue() > 1000)
            return;
        XYChart.Data<Number , Number> data =
                new XYChart.Data<>(SystemUtil.round(xValue.intValue()), SystemUtil.round(yValue.intValue()));
        seri.getData().add(data);

        Node currentNode = data.getNode();
        currentNode.setCursor(Cursor.HAND);
        currentNode.setOnMouseDragged(event -> {
            Point2D pointInScene = new Point2D(event.getSceneX(), event.getSceneY());
            double xPosInAxis = timeAxis.sceneToLocal(new Point2D(pointInScene.getX(), 0)).getX();
            double yPosInAxis = bandWidthAxis.sceneToLocal(new Point2D(0, pointInScene.getY())).getY();
            int x = timeAxis.getValueForDisplay(xPosInAxis).intValue();
            int y = bandWidthAxis.getValueForDisplay(yPosInAxis).intValue();
            data.setXValue(SystemUtil.round(x));
            data.setYValue(SystemUtil.round(y));
        });
        currentNode.setOnContextMenuRequested(e -> {

            if(chartContextMenu.isShowing())
                chartContextMenu.hide();
            dataContextMenu.setUserData(data);
            dataContextMenu.show(lineChart1, e.getScreenX(), e.getScreenY());
        });
    }

我从某处复制了这段代码,但我不记得在哪里,所以我觉得很难理解代码。

代码是:     包AppearanceRecognition;

Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - cannot find symbol
symbol:   variable AppearanceRecognition
location: class AppearanceRecognition.EigenFacesRunner
at AppearanceRecognition.EigenFacesRunner.main(EigenFacesRunner.java:42)
C:\Users\Adila\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 0 seconds)

0 个答案:

没有答案