IKVM and Printing Classpath
Matt Hunter <[email protected]>
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <CAOY0yDjhzp0vjnjN18nm04pJ2WfS81MDRqrjqhbsm7gMMqkHiQ@mail.gmail.com> |
Hi all,
I’m trying to enumerate through the classpath and print out the results,
using the following code
import java.net.URL;
import java.net.URLClassLoader;
URLClassLoader sysLoader = (URLClassLoader)
ClassLoader.getSystemClassLoader();
URL[] urls = sysLoader.getURLs();
for (int i = 0; i < urls.length; i++) {
System.out.printf("%d: %s\n", i, urls[i]);
}
Is there any way I can do this while using ikvm?
Thanks,
Matt Hunter
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers