HighTechTalks DotNet Forums  

JBIMP? Is this an outlandish request?

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss JBIMP? Is this an outlandish request? in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Michael A. Covington
 
Posts: n/a

Default JBIMP? Is this an outlandish request? - 01-17-2007 , 03:26 PM






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!









Reply With Quote
  #2  
Old   
Michael A. Covington
 
Posts: n/a

Default Re: JBIMP? Is this an outlandish request? - 01-18-2007 , 09:12 AM






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?


"Michael A. Covington" <look (AT) www (DOT) ai.uga.edu.for.address> wrote

Quote:
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!











Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.