Description
Hi. I am getting a java.lang.NoSuchMethodError when using the strdist command from the STRUTIL package.
Thought it was something I was doing at first. I did a complete reinstall and the phonetic encoding commands continue to work fine. However the strdist command returns this error. I've recreated it below with your example.
` sysuse census
(1980 Census data by state)
. keep state state2
. strdist state state2, jarowinklers(jaro_sim)
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.stata.Javacall.load(Javacall.java:130)
at com.stata.Javacall.load(Javacall.java:90)
Caused by: java.lang.NoSuchMethodError: org.paces.Stata.MetaData.Meta: method ()V not found
at org.paces.Stata.StringUtils.Similarity.DistanceMetrics.(DistanceMetrics.java:169)
at org.paces.Stata.StringUtils.StringUtilities.distance(StringUtilities.java:53)
... 6 more
`
This error is occurring on a PC - recent upgrade on my work machine.
I've not had the error on my mac - STRUTIL was installed last year when I first discovered your program and all is working ok on that installation.
I see from this exchange wbuchanan/StataJSON#22 that a similar error occured perhaps due to a dependency issue with StataJavaUtilities. Perhaps this is another in the same vein.
I hope this is something you can easily address.
Stephen