I'm trying to use java.util.List in a C# file. I have IKVM 0.40. I tr开发者_StackOverflow中文版y to use the java.util namespace like this
using IKVM.OpenJDK.Util;
and compile the file (test.cs) with Mono like this
mcs -reference:/path/to/IKVM.OpenJDK.Util.dll,path/to/IKVM.OpenJDK.Core.dll,path/to/IKVM.Runtime.dll test.cs
but I get the following error
The type or namespace name `OpenJDK' does not exist in the namespace `IKVM'.
What is wrong?
The namespace is java.util that you need to use:
using java.util;
Use -L instead of using -reference.
精彩评论