![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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! |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |