XNIO Class.fromName
Nathan Mascitelli <[email protected]>
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <CAJddYyiR8gVkusfy1bPF7O=WsyrN4T6XsXb5TSWwuFQfrnbt_w@mail.gmail.com> |
Hi,
I am trying to get XNIO v3.3.0 running with IKVM. I am using three jars:
- jboss-logging-3.2.0
- xnio-api-3.3.0
- xnio-nio-3.3.0
Here is the ikvm command for each:
- ikvm\bin\ikvmc.exe -target:library
"path\to\jar\jboss-logging-3.2.0.Beta1.jar" -out:"out\jboss-logging.dll"
- ikvm\bin\ikvmc.exe -target:library
"path\to\jar\xnio-api-3.3.0.Beta1.jar" -out:"out\xnio-api.dll"
-reference:"out\jboss-logging.dll"
- ikvm\bin\ikvmc.exe -target:library
"path\to\jar\xnio-nio-3.3.0.Beta1.jar" -out:"out\xnio-nio.dll"
-reference:"out\xnio-api.dll" -reference:"out\jboss-logging.dll"
The issue is in the static constructor of Xnio.java:
try {
// try to find an NIO.2 interface on the system class path
Class.forName("java.nio.channels.MulticastChannel", false, null);
nio2 = true;
} catch (Throwable t) {
}
Running this in pure java the Class.forName line is hit and does not throw
and exception so nio2 is set to true. In the IKVMd version that line throws
an exception which has nio2 be set to false and this causes issues farther
down the road for me.
If anyone could help or provide some insight that would be great, thanks!
*Nathan Mascitelli*
------------------------------------------------------------------------------
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