Re: Problems with IKVM.NET Compiler version 7.4.5196.0 and ikvm-maven-plugin

Jeroen Frijters <[email protected]>
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
Hi,

That is a Xamarin Studio error message and I don't know much about that.

Regards,
Jeroen

> -----Original Message-----
> From: Dmytro Gumeniuk [mailto:[email protected]]
> Sent: Wednesday, May 7, 2014 9:03
> To: Jeroen Frijters; [email protected]
> Subject: Re: [Ikvm-developers] Problems with IKVM.NET Compiler version
> 7.4.5196.0 and ikvm-maven-plugin
> 
> Hi.
> Thank you for your advice. It was helpfull.
> But I had troubles with removing the –debug option from your ikvmc
> invocation.
> 
> I use ikvm-maven-plugin. And I put ikvmc options in maven configuration.
> Like
> 
> 
> <ikvmArgs>
>      <ikvmArg>-debug</ikvmArg>
> </ikvmArgs>
> And you can't just remove this option. Because you'll receive null
> pointer exception. So I just added other option.
> Like
> 
> 
> <ikvmArgs>
>      <ikvmArg>-version:1.0.0.0</ikvmArg>
> </ikvmArgs>
> Then project was built successful.
> I received dll library and included it in my xamarin project.
> Also I added to xamarin project IKVM.OpenJDK.Core.dll and
> IKVM.OpenJDK.Util.dll.
> 
> And when I try to build project I received an exception error MT2002:
> Failed to resolve assembly: 'System.Drawing, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
> 
> I see that in References->Packages->Assembly I have version 2.0.5.0
> 
> 
> Do you know why an exception was thrown and how I can avoid it?
> 
> 
> 
> 
> 
> Want to know when your emails are opened? Click Here
> <https://emailcherry.com/extension/redirect/9/aHR0cHM6Ly9lbWFpbGNoZXJyeS
> 5jb20=>
> 
> <https://emailcherry.com/extension/track/900006/85a66ad16cb2fc245263ee07
> 70172e94/412cd6c0b453ea117b557fa7ae4fb518/cream.png>
> 
> 
> On Wed, Apr 30, 2014 at 4:32 PM, Jeroen Frijters <[email protected]
> <mailto:[email protected]> > wrote:
> 
> 
> 	I accidentally broke writing debugging symbols under Mono. Try
> removing the –debug option from your ikvmc invocation.
> 
> 
> 
> 	Regards,
> 
> 	Jeroen
> 
> 
> 
> 	From: Dmytro Gumeniuk [mailto:[email protected]
> <mailto:[email protected]> ]
> 	Sent: Wednesday, April 30, 2014 13:06
> 	To: [email protected] <mailto:ikvm-
> [email protected]>
> 	Subject: Re: [Ikvm-developers] Problems with IKVM.NET
> <http://IKVM.NET>  Compiler version 7.4.5196.0 and ikvm-maven-plugin
> 
> 
> 
> 
> 
> 
> 
> 
> Want to know when your emails are opened? Click Here
> <https://emailcherry.com/extension/redirect/9/aHR0cHM6Ly9lbWFpbGNoZXJyeS
> 5jb20=>
> 
> 
> 
> 
> 
> 	On Wed, Apr 30, 2014 at 1:35 PM, Dmytro Gumeniuk <[email protected]
> <mailto:[email protected]> > wrote:
> 
> 		Hi all.
> 		I need to compile Java project into dll library which I will
> include in xamarin project.
> 
> 		I'm using OS 1.9, Oracle JDK 1.7, IKVM.NET <http://ikvm.net/>
> Compiler version 7.4.5196.0.
> 
> 		I've tried to compile Java project with maven and ikvm-maven-
> plugin:1.1.4 and received an exception.
> 
> 
> 
> 		[INFO] --- ikvm-maven-plugin:1.1.4:ikvm (default-ikvm) @
> poker-web-client-mobile-ios-native ---
> 
> 		[WARNING] IKVM.NET <http://ikvm.net/>  Compiler version
> 7.4.5196.0
> 
> 		Copyright (C) 2002-2014 Jeroen Frijters
> 
> 		http://www.ikvm.net/
> 
> 
> 
> 
> 
> 		*** INTERNAL COMPILER ERROR ***
> 
> 
> 
> 		PLEASE FILE A BUG REPORT FOR IKVM.NET <http://ikvm.net/>
> WHEN YOU SEE THIS MESSAGE
> 
> 
> 
> 		ikvmc, Version=7.4.5196.0, Culture=neutral,
> PublicKeyToken=13235d27fcbfff58
> 
> 
> 	/Library/Frameworks/Mono.framework/Versions/3.2.6/lib/mono/2.0
> 
> 		2.0.50727.1433 32-bit
> 
> 
> 
> 		System.NotSupportedException: IKVM.Reflection must be
> compiled with MONO defined to support writing Mono debugging symbols.
> 
> 		  at IKVM.Reflection.Impl.SymbolSupport.CreateSymbolWriterFor
> (IKVM.Reflection.Emit.ModuleBuilder moduleBuilder) [0x00000] in
> <filename unknown>:0
> 
> 		  at IKVM.Reflection.Emit.ModuleBuilder..ctor
> (IKVM.Reflection.Emit.AssemblyBuilder asm, System.String moduleName,
> System.String fileName, Boolean emitSymbolInfo) [0x00000] in <filename
> unknown>:0
> 
> 		  at IKVM.Reflection.Emit.AssemblyBuilder.DefineDynamicModule
> (System.String name, System.String fileName, Boolean emitSymbolInfo)
> [0x00000] in <filename unknown>:0
> 
> 		  at IKVM.Internal.CompilerClassLoader.CreateModuleBuilder ()
> [0x00000] in <filename unknown>:0
> 
> 		  at IKVM.Internal.DynamicClassLoader.Get
> (IKVM.Internal.ClassLoaderWrapper loader) [0x00000] in <filename
> unknown>:0
> 
> 		  at IKVM.Internal.ClassLoaderWrapper.GetTypeWrapperFactory
> () [0x00000] in <filename unknown>:0
> 
> 		  at IKVM.Internal.ClassLoaderWrapper.DefineClassCritical
> (IKVM.Internal.ClassFile f, System.Object protectionDomain) [0x00000] in
> <filename unknown>:0
> 
> 		  at IKVM.Internal.ClassLoaderWrapper.DefineClass
> (IKVM.Internal.ClassFile f, System.Object protectionDomain) [0x00000] in
> <filename unknown>:0
> 
> 		  at
> IKVM.Internal.CompilerClassLoader.GetTypeWrapperCompilerHook
> (System.String name) [0x00000] in <filename unknown>:0
> 
> 		  at IKVM.Internal.CompilerClassLoader.LoadClassImpl
> (System.String name, Boolean throwClassNotFoundException) [0x00000] in
> <filename unknown>:0
> 
> 		  at
> IKVM.Internal.ClassLoaderWrapper.LoadClassByDottedNameFastImpl
> (System.String name, Boolean throwClassNotFoundException) [0x00000] in
> <filename unknown>:0
> 
> 		  at
> IKVM.Internal.ClassLoaderWrapper.LoadClassByDottedNameFast
> (System.String name) [0x00000] in <filename unknown>:0
> 
> 		  at IKVM.Internal.CompilerClassLoader.CompilePass1 ()
> [0x00000] in <filename unknown>:0
> 
> 		  at IKVM.Internal.CompilerClassLoader.Compile (System.String
> runtimeAssembly, System.Collections.Generic.List`1 optionsList)
> [0x00000] in <filename unknown>:0
> 
> 		  at IkvmcCompiler.Compile (System.String[] args) [0x00000]
> in <filename unknown>:0
> 
> 		  at IkvmcCompiler.Main (System.String[] args) [0x00000] in
> <filename unknown>:0
> 
> 
> 
> 		But for me all this compilation process works with old IKVM
> 7.0.2 and Java 1.6.
> 		But I see that in new version 7.4.5196.0 you have already
> supported Java 1.7 and many feachures like reflection and others.
> 		Please tell me is it possible use version 7.4.5196.0 for
> compile java 1.7 code into dll library?
> 
> 		If yes then how?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Want to know when your emails are opened? Click Here
> <https://emailcherry.com/extension/redirect/9/aHR0cHM6Ly9lbWFpbGNoZXJyeS
> 5jb20=>
> 
> 
> 
> 
> 

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.