Facing issues in snap latest version

Hello , I tried installing snap8 but unfortunately, it is throwing me an error

Error: Java class ‘com.vividsolutions.jts.io.WKTReader’ not found

Could anyone help me out

Thanks in advance

And, I get an error with “Java class ‘com.vividsolutions.jts.geom.GeometryFactory’ not found”
My code in python:
GeoFactory = jpy.get_type(‘com.vividsolutions.jts.geom.GeometryFactory’)
This code work well on Snap7 but not work on Snap 8.
Maybe Snap8 have something conflict with this java class?
Sorry for my bad English.
Thank you.

The library we use changed the package.
It is now: org.locationtech.jts.geom.GeometryFactory

@Swathi, I was running into the same problem after trying to run some old scripts with SNAP8.

I removed this line from my script:
WKTReader = snappy.jpy.get_type('com.vividsolutions.jts.io.WKTReader')

And added WKTReader here:
from snappy import (ProductIO, WKTReader)

Seems to have solved the problem.

2 Likes