Re: Differences in path handling in ikvmc DLL vs. Java jar execution
Volker Berlin <[email protected]> Mon, 21 Nov 2016 09:25:45 +0100
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============5523665764145539554== Content-Type: multipart/alternative; boundary="------------6689727BE0810C3F503655AF" --------------6689727BE0810C3F503655AF Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit .NET does not know the concept of the classpath. You need add references to DLLs to your program. Or open a it via file API. Volker Am 18.11.2016 um 20:39 schrieb Paul Chambre: > 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 > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Ikvm-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ikvm-developers --------------6689727BE0810C3F503655AF Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <p>.NET does not know the concept of the classpath. You need add references to DLLs to your program. Or open a it via file API.<br> </p> Volker<br> <br> <br> <div class="moz-cite-prefix">Am 18.11.2016 um 20:39 schrieb Paul Chambre:<br> </div> <blockquote cite="mid:CAJwVo5HGVTc6PWarvT5q-2u9hpXsExps_-5A-BonUKdLjbAaew@mail.gmail.com" type="cite"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <div dir="ltr"> <div>Hi folks,</div> <div><br> </div> <div>I noticed some differences in file access from code within an ikvmc DLL vs. that same code executed by Java from a jar.</div> <div><br> </div> <div>One particular example is a properties file that is passed to one of our classes with a -D. </div> <div><br> </div> <div>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).</div> <div><br> </div> <div>Are there other properties to be set specifically for ikvmc, to define the classpath or other "local" path configurations?</div> <div><br> </div> <div>Thanks,<br> Paul</div> </div> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">------------------------------------------------------------------------------ </pre> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Ikvm-developers mailing list <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/ikvm-developers">https://lists.sourceforge.net/lists/listinfo/ikvm-developers</a> </pre> </blockquote> <br> </body> </html> --------------6689727BE0810C3F503655AF-- --===============5523665764145539554== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ --===============5523665764145539554== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ikvm-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ikvm-developers --===============5523665764145539554==--