ikvm

How to debug “Could not load file or assembly” runtime errors?

大憨熊 提交于 2019-11-27 14:57:26
I have a project that uses a Java library converted using IKVM . I added the created DLL plus all possible IKVM DLLs as references to my project, but when I run it, I get the following runtime error: System.IO.FileNotFoundException : Could not load file or assembly 'core, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. I'm not really sure how to debug this error. Is there a way to know exactly which type is missing? From the description I'd guess this is the generated DLL (from the Java lib) but I have properly added

Setting JVM parameters at runtime

妖精的绣舞 提交于 2019-11-27 11:37:23
问题 Is it possible to change/modify/adding VM parameters after the JVM is already loaded (running)? If so, how can I do it? 回答1: For properties you'd set via the -D flag on the command line, you want System.setProperty. For example: System.setProperty("propname", "hello world"); // ... later ... String value = System.getProperty("propname"); Update: You can't enable debugging dynamically, but you can enable debugging at startup but attach a debugger later. With the following, you can listen on

Setting CLASSPATH during runtime

和自甴很熟 提交于 2019-11-27 07:22:57
问题 How do I set a CLASSPATH variable during runtime while using IKVM? I've been trying to do it by using: java.lang.System.setProperty("java.class.path", "whatever"); The class I'm calling requires a configuration file in the classpath to work - and I keep getting errors that seem to indicate that it hasn't gotten its settings. Is the way I'm trying to add variable incorrect? 回答1: I was trying to do the same thing. I had some jar files compiled to a .Net dll but some of those (3rd party) jar

How to debug “Could not load file or assembly” runtime errors?

久未见 提交于 2019-11-26 16:59:47
问题 I have a project that uses a Java library converted using IKVM. I added the created DLL plus all possible IKVM DLLs as references to my project, but when I run it, I get the following runtime error: System.IO.FileNotFoundException : Could not load file or assembly 'core, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. I'm not really sure how to debug this error. Is there a way to know exactly which type is missing?