Using a JAR via JNI from Editor Plugin?

Hi, I have a jar that I’d like to access from Editor scripts. The jar has all vanilla Java classes, no Android-specific code. I dropped the jar in Assets/Editor and it was auto-recognized as an Editor plugin, but I can’t figure out how to access any of the java classes from the C# scripts in the same directory. I’m not sure how to get a JNIEnv instance in C# and I don’t believe the AndroidJavaClass/AndroidJavaObject are available to Editor plugins.

Do I need to write a C++ bridge between them? Any other ideas?

Yes, that’s the only option. And you’ll have to setup a Java VM as well. The Android APIs only work on Android, not in Editor.

That’s disappointing, though I guess not surprising. Thank you for the answer!