ArcGIS Java SDK 100.2
I am new to the Java SDK and I am trying a simple test case to create an image from an ArcGISMap with a few points in it. When I try to run it I get the following when I try to create FeatureLayer from a FeatureCollectionTable:
Exception in thread "main" com.esri.arcgisruntime.ArcGISRuntimeException: Invalid argument
at com.esri.arcgisruntime.internal.jni.CoreFeatureLayer.nativeCreateWithFeatureTable(Native Method)
at com.esri.arcgisruntime.internal.jni.CoreFeatureLayer.<init>(SourceFile:67)
at com.esri.arcgisruntime.layers.FeatureLayer.a(SourceFile:209)
at com.esri.arcgisruntime.layers.FeatureLayer.<init>(SourceFile:194)
I could not see how to create a FeatureTable from some Features, hence my use of a FeatureCollectionTable. Maybe that is incorrect?
I have set the environment variable ARCGISRUNTIMESDKJAVA_100_2_0 to the correct path to find the JNI code which I presume is in jniLibs under that path?
I have attached the (very simple) test code. I presume I have missed something but what?
Cheers,
Chris Mugdan