Partly answering my own question, I fear that what's going on is that these
are features of Java 1.5 or 1.6, and JBIMP supports Java 1.4. Can someone
confirm that?
[quoted text, click to view] "Michael A. Covington" <look@www.ai.uga.edu.for.address> wrote in message
news:%23QzL3WnOHHA.4100@TK2MSFTNGP04.phx.gbl...
>I am using a GPLed utility (Hugo Liu's Montylingua) which is distributed as
>a .jar file that was compiled from Python source with jython.
>
> I would like to call this from a C# program.
>
> Reportedly, Microsoft's jbimp utility will compile a .jar file into a .NET
> dll file. But here's what happens when I try:
>
>
> U:\My Documents\>jbimp /target:exe /out:montylingua.dll montylingua.jar
> Microsoft (R) Java-language bytecode to MSIL converter version
> 2.0.50727.42
> for Microsoft (R) .NET Framework version 2.0.50727
> Copyright (C) Microsoft Corp 2000-2002. All rights reserved.
>
> Please convert all unresolved references and resubmit for successful
> conversion
> JbImp error: Couldn't find class 'java.lang.ref.Reference'
> Unresolved class 'java.lang.ref.Reference' is not also present in the
> CLASSPATH
> JbImp error: Couldn't find class 'java.lang.ref.ReferenceQueue'
> Unresolved class 'java.lang.ref.ReferenceQueue' is not also present in the
> CLASSPATH
> JbImp error: Couldn't find class 'java.security.SecureClassLoader'
> Unresolved class 'java.security.SecureClassLoader' is not also present in
> the CLASSPATH
> JbImp error: Couldn't find class 'java.security.ProtectionDomain'
> Unresolved class 'java.security.ProtectionDomain' is not also present in
> the CLASSPATH
> JbImp error: Unresolved Method 'public static
> java.security.ProtectionDomain java.lang.Class.getProtectionDomain()'
> JbImp error: Internal Conversion Error : 'types-getref-external'
> JbImp error: Unresolved Method 'public static java.lang.Class
> java.lang.ClassLoader.defineClass(java.lang.String, byte[]
> , int, int, java.security.ProtectionDomain)'
> JbImp error: Couldn't find class 'java.lang.ref.WeakReference'
> Unresolved class 'java.lang.ref.WeakReference' is not also present in the
> CLASSPATH
> JbImp error: Couldn't find class 'java.lang.reflect.AccessibleObject'
> Unresolved class 'java.lang.reflect.AccessibleObject' is not also present
> in the CLASSPATH
> JbImp error: Couldn't find class 'java.lang.ref.SoftReference'
> Unresolved class 'java.lang.ref.SoftReference' is not also present in the
> CLASSPATH
> JbImp error: Couldn't find class 'java.lang.ThreadLocal'
> Unresolved class 'java.lang.ThreadLocal' is not also present in the
> CLASSPATH
>
>
> I'm not very conversant with Java. Can someone tell me what I'm doing
> wrong? Many thanks!
>
>
>
>
>
>
>
>