again the same excerpt where functions with one parameter are called without problems via jcall, but at >1 parameters it throws error
pixelType = jcall(r, "getPixelType", jint, ())
bpp = jcall(JFormatTools,"getBytesPerPixel",jint, (jint,), pixelType)
fp = jcall(JFormatTools,"isFloatingPoint",jboolean, (jint,), pixelType)
little = jcall(r, "isLittleEndian", jboolean, ())
iPlane = 180
plane = jcall(r, "openBytes", Array{jbyte, 1}, (jint,), iPlane)
# this passes OK
I = jcall(JDataTools,"makeSigned", Array{jbyte, 1}, (Array{jbyte, 1},), plane)
S = jcall(JDataTools,"bytesToHex", JString, (Array{jbyte, 1},), plane)
# error, despite functions are in the same synopsis
I = jcall(JDataTools,"bytesToShort", Array{jshort, 1}, (Array{jbyte, 1},), (jboolean,), plane, little )
# error
I = jcall(JDataTools,"makeDataArray", Array{jshort, 1},
(Array{jbyte, 1},), (jint,), (jboolean,), (jboolean,),
plane,bpp,fp,little)
other words, I don’t know how to call functions with >1 parameters.
it would be great to learn.
the error of the type
LoadError: Error calling Java: java.lang.NoSuchMethodError: bytesToShort