public float getLength() {
        return spline.getTotalLength();
    }
This method returns the length of the curve.

@return the length of the curve
jme3-core/src/main/java/com/jme3/scene/shape/Curve.java