[Ikvm-developers] Dependency on Runtime.
Brought to you by:
jfrijters
From: Craig M. <cr...@pa...> - 2008-11-13 17:50:21
|
Hi, I am currently using your latest snapshot 0.38.0.2 (from your blog). There is currently a runtime dependency on IKVM.Runtime which (to my knowledge) was not around previously. I am curious about it. I have compiled a library (.jar) to a dll. When I instantiate my first java class in .NET it tries to load IKVM.Runtime. I thought the runtime was only required when using the dynamic VM and not for pre-compiled libraries. Is this perhaps a symptom of a dependency creeping in which should not be there? Here is the load information. It would appear that java.lang.Props in the GNU library is attempting to load IKVM.Runtime at runtime. Should this be necessary? === Pre-bind state information === LOG: User = AKHET\Craig LOG: DisplayName = IKVM.Runtime, Version=0.38.0.2, Culture=neutral, PublicKeyToken=5e81ed3973a1959b (Fully-specified) LOG: Appbase = file:///D:/Development/Palantir/Signate/LocalService/bin/x86/Debug/ LOG: Initial PrivatePath = NULL Calling assembly : IKVM.OpenJDK.ClassLibrary, Version=0.38.0.2, Culture=neutral, PublicKeyToken=5e81ed3973a1959b. === LOG: This bind starts in default load context. LOG: Using application configuration file: D:\Development\Palantir\Signate\LocalService\bin\x86\Debug\LocalService.vsho st.exe.Config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Post-policy reference: IKVM.Runtime, Version=0.38.0.2, Culture=neutral, PublicKeyToken=5e81ed3973a1959b LOG: Attempting download of new URL file:///D:/Development/Palantir/Signate/LocalService/bin/x86/Debug/IKVM.Runt ime.DLL. LOG: Attempting download of new URL file:///D:/Development/Palantir/Signate/LocalService/bin/x86/Debug/IKVM.Runt ime/IKVM.Runtime.DLL. LOG: Attempting download of new URL file:///D:/Development/Palantir/Signate/LocalService/bin/x86/Debug/IKVM.Runt ime.EXE. LOG: Attempting download of new URL file:///D:/Development/Palantir/Signate/LocalService/bin/x86/Debug/IKVM.Runt ime/IKVM.Runtime.EXE. --- End of inner exception stack trace --- at java.lang.System.getProperty(String key) at org.apache.lucene.store.FSDirectory..cctor() --- End of inner exception stack trace --- at org.apache.lucene.store.FSDirectory.getDirectory(String path) at Signate.FullText.Lucene.SearchEngine.AddDocument(IDictionary`2 documentInfo) in D:\Development\Palantir\Plugins\FilterEngine\Engines\Signate.FullText.Search \SearchEngine.cs:line 32 at Signate.Indexing.FullTextIndexProvider.RefreshIndexes() in D:\Development\Palantir\Signate\Signate.Metadata\FullTextIndexProvider.cs:li ne 130 at Signate.Indexing.FullTextIndexProvider.Schedule() in D:\Development\Palantir\Signate\Signate.Metadata\FullTextIndexProvider.cs:li ne 91 at Signate.Indexing.FullTextIndexProvider.&lt;StartMonitoringRepository& ;gt;b__0() in D:\Development\Palantir\Signate\Signate.Metadata\FullTextIndexProvider.cs:li ne 52 at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedClea nup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()</ExceptionString><InnerException ><ExceptionType>System.TypeInitializationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The type initializer for 'java.lang.Props' threw an exception.</Message><StackTrace> at java.lang.System.getProperty(String key) at org.apache.lucene.store.FSDirectory..cctor()</StackTrace><ExceptionString>Sy stem.TypeInitializationException: The type initializer for 'java.lang.Props' threw an exception. ---&gt; System.IO.FileNotFoundException: Could not load file or assembly 'IKVM.Runtime, Version=0.38.0.2, Culture=neutral, PublicKeyToken=5e81ed3973a1959b' or one of its dependencies. The system cannot find the file specified. File name: 'IKVM.Runtime, Version=0.38.0.2, Culture=neutral, PublicKeyToken=5e81ed3973a1959b' at java.util.Hashtable..ctor(Int32 initialCapacity, Single loadFactor) at java.util.Hashtable..ctor() at java.util.Properties..ctor(Properties defaults) at java.util.Properties..ctor() at java.lang.Props..cctor() |