OK,
After experimenting with installing the library separately, I'm still getting the following error:
--
> nig.spike :genKeyPair testuser
error: executing nig.spike: [arc.mf.server.Services$ExServiceError]: call to service 'nig.spike' failed: java.lang.ClassCastException: com.jcraft.jsch.jce.KeyPairGenRSA cannot be cast to com.jcraft.jsch.KeyPairGenRSA
--
The specific line in my code causing the error:
--
com.jcraft.jsch.KeyPair kpair = com.jcraft.jsch.KeyPair.genKeyPair(
new JSch(), com.jcraft.jsch.KeyPair.RSA, size);
--
ie. the function called is in the external library.
My plugin module shows the library is specified:
--
> plugin.module.describe :class "nig.mf.plugin.sink.LoggingSinkModule"
:module -class "nig.mf.plugin.sink.LoggingSinkModule" -path "/plugins/cvl-spikes-plugin.jar"
:aid "2271"
:services
:service "nig.spike"
:lib -aid "2276" "/libs/jsch-0.1.50.jar"
--
So probably 2 questions here:
1) After adding the jsch library to my plugin, does MF run the plugin with my supplied library? Or would the MF-supplied jsch library still take precedence?
2) If the latter: what JDK version should I compile my code with to match the MF code? I'm guessing this might be part of the problem.*
* I think I was told to use JDK 6, but the recent forum post seems to say otherwise.
Thanks again,
King