You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java-interop.jar MUST be within $CLASSPATH, or all manner of things
break (e.g. com.xamarin.android.ManagedPeer is required by
Java.Interop.ManagedPeer).
Previously the responsibility for providing java-interop.jar was done
whoever created JreVMBuilder, but this makes things annoying when
writing new utility programs (yet one more thing that needs to be
specified).
Change the Java.Runtime.Environment.csproj so it's a "normal" Library
project (PCL is getting annoying now), add a JreVMBuilder.ClassPath
collection property, and auto-add "java-interop.jar" to the
JreVMBuilder.ClassPath property.
For good measure, provide the *full path* to java-interop.jar as well,
so that the current working directory when running apps doesn't need
to be the bin/$(CONFIGURATION) directory (otherwise the JDK can't find
java-interop.jar).
0 commit comments