[Ikvm-developers] XNIO Class.fromName
Brought to you by:
jfrijters
|
From: Nathan M. <nat...@ge...> - 2014-08-08 15:56:24
|
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*
|