I stumbled upon jni4net yesterday and it looks like the perfect solution to our nasty problem. We have a serialized Java class that we need some data from, inside a C# codebase. I have the original Java .class files, but it looks like when the Java process is actually trying to do read the object from the serialized data, it can't find this .class definition.
var bridgeSetup = new BridgeSetup();
bridgeSetup.AddClassPath("TestData.class");
Bridge.CreateJVM(bridgeSetup);
var s = new java.io.ObjectInputStream(new FileInputStream("file.dat"));
var v = s.readObject();
The JVM will marshall an exception through saying 'java.lang.ClassNotFoundException' on the class TestData, which should be loaded correctly (I would think?)
What could I be missing here?
Thanks,
Bart