Paul Chambre
2016-11-18 19:39:34 UTC
Hi folks,
I noticed some differences in file access from code within an ikvmc DLL vs.
that same code executed by Java from a jar.
One particular example is a properties file that is passed to one of our
classes with a -D.
Initially, whether local to the application (next to the jar/dll) or fully
qualified, the file was inaccessible to the jar code. I then added . to the
classpath in the manifest of the jar, and that allowed the jar code, when
run through Java -jar, to access properties files in the same directory as
the jar.However, this change did not help DLLs make with ikvmc from that
jar. Those dlls still cannot access the properties file when it's in the
same directory as the DLL (or fully qualified).
Are there other properties to be set specifically for ikvmc, to define the
classpath or other "local" path configurations?
Thanks,
Paul
I noticed some differences in file access from code within an ikvmc DLL vs.
that same code executed by Java from a jar.
One particular example is a properties file that is passed to one of our
classes with a -D.
Initially, whether local to the application (next to the jar/dll) or fully
qualified, the file was inaccessible to the jar code. I then added . to the
classpath in the manifest of the jar, and that allowed the jar code, when
run through Java -jar, to access properties files in the same directory as
the jar.However, this change did not help DLLs make with ikvmc from that
jar. Those dlls still cannot access the properties file when it's in the
same directory as the DLL (or fully qualified).
Are there other properties to be set specifically for ikvmc, to define the
classpath or other "local" path configurations?
Thanks,
Paul