Re: [Ikvm-developers] scanning jars for class files
Brought to you by:
jfrijters
|
From: <bri...@no...> - 2013-02-18 16:34:52
|
Thanks so much. Sadly, it didn't compile: *** INTERNAL COMPILER ERROR *** PLEASE FILE A BUG REPORT FOR IKVM.NET WHEN YOU SEE THIS MESSAGE System.TypeInitializationException: The type initializer for 'IKVM.Internal.AttributeHelper' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. at IKVM.Internal.StaticCompiler.GetRuntimeType(String name) at IKVM.Internal.JVM.LoadType(Type type) at IKVM.Internal.AttributeHelper..cctor() --- End of inner exception stack trace --- at IKVM.Internal.AttributeHelper.GetRemappedClasses(Assembly coreAssembly) at IKVM.Internal.ClassLoaderWrapper.LoadRemappedTypes() at IKVM.Internal.CompilerClassLoader.CreateCompiler(CompilerOptions options, CompilerClassLoader& loader, Boolean& compilingCoreAssembly) at IKVM.Internal.CompilerClassLoader.Compile(String runtimeAssembly, List`1 optionsList) at IkvmcCompiler.Compile(String[] args) at IkvmcCompiler.Main(String[] args) Thanks, Brian -----Original Message----- From: Jeroen Frijters [mailto:je...@su...] Sent: Monday, February 18, 2013 3:07 AM To: Ross, Brian (IT/US); ikv...@li... Subject: RE: scanning jars for class files Hi Brian, I've added supported for projecting the classes into the resource jars. Could you please try out the new snapshot? http://weblog.ikvm.net/PermaLink.aspx?guid=bca1a209-0bbf-4a09-a14d-87a4f0ce1788 Regards, Jeroen > -----Original Message----- > From: bri...@no... [mailto:bri...@no...] > Sent: Friday, February 15, 2013 15:41 > To: Jeroen Frijters; ikv...@li... > Subject: RE: scanning jars for class files > > Great. Thanks so much for your help! > > > -----Original Message----- > From: Jeroen Frijters [mailto:je...@su...] > Sent: Friday, February 15, 2013 1:51 AM > To: Ross, Brian (IT/US); ikv...@li... > Subject: RE: scanning jars for class files > > bri...@no... wrote: > > Thanks, that seemed to work and spring is picking up the classes > > just fine now. > > > > So basically, I need to go through all the jars and generate > > resources for every class AND every package when calling ikvmc. > > Since ikvmc is already going through all these anyway, would it be > > possible for ikvmc to just include the classes to begin with? > > Yes, that's what i wrote in the beginning. I considered adding an > ikvmc option to do this. The downside, of course, is that this would > make your assembly much bigger. > > > Truth be told, I don't even really need the contents of the class > files. > > I just need them to exist so that resource scanning works properly. > > Exactly and this is what makes it hard. I don't want to add an option > for only including the class names. > > I'm going to think about this a bit more. It might be possible (and > worthwhile) to add the empty class files to the zip and hack ZipFile > to generate the stubs on demand. > > Regards, > Jeroen > > > > > PLEASE READ: This message is for the named person's use only. It may > contain confidential, proprietary or legally privileged information. > No confidentiality or privilege is waived or lost by any mistransmission. > If you receive this message in error, please delete it and all copies > from your system, destroy any hard copies and notify the sender. You > must not, directly or indirectly, use, disclose, distribute, print, or > copy any part of this message if you are not the intended recipient. > Nomura Holding America Inc., Nomura Securities International, Inc, and > their respective subsidiaries each reserve the right to monitor all e- > mail communications through its networks. Any views expressed in this > message are those of the individual sender, except where the message > states otherwise and the sender is authorized to state the views of > such entity. Unless otherwise stated, any pricing information in this > message is indicative only, is subject to change and does not > constitute an offer to deal at any price quoted. Any reference to the > terms of executed transactions should be treated as preliminary only > and subject to our formal written confirmation. PLEASE READ: This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please delete it and all copies from your system, destroy any hard copies and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Nomura Holding America Inc., Nomura Securities International, Inc, and their respective subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state the views of such entity. Unless otherwise stated, any pricing information in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as preliminary only and subject to our formal written confirmation. |