Tilak Raj Singh
2017-06-08 11:34:24 UTC
Hi All,
I have a Java Application for xslt transformation which was compiling
correctly using ikvmc and the dll generated was working fine in my app.
Now when I added a few lines of code to my java app as follows
if(tClassName.equalsIgnoreCase("net.sf.saxon.TransformerFactoryImpl"))
((net.sf.saxon.Controller)transformer).setMessageEmitter(new
net.sf.saxon.serialize.MessageWarner());
and generating dll using the command
call ikvmc -debug -target:library -nostdlib
-lib:C:\Windows\Microsoft.NET\Framework\v4.0.30319 FMXSLTJava.jar
-out:FMXSLTJava.dll
following warning messages are being thrown
IKVM.NET Compiler version 7.2.4630.5
Copyright (C) 2002-2012 Jeroen Frijters
http://www.ikvm.net/
warning IKVMC0123: Assuming assembly reference "System, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" matches "System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", you may
need to supply runtime policy
warning IKVMC0100: Class "net.sf.saxon.Controller" not found
warning IKVMC0100: Class "net.sf.saxon.serialize.MessageWarner" not found
warning IKVMC0111: Emitted java.lang.NoClassDefFoundError in
"FMJAXPInvoker.transform(Ljavax.xml.transform.Source;Ljavax.xml.transform.Source;Ljavax.xml.transform.Result;[Ljava.lang.String;)Z"
("net.sf.saxon.serialize.MessageWarner")
ignoring these messages as given on several other forums and proceeding to
use this generated dll in my app causes it to crash on this particular line
of code which I have inserted.
saxon9he.jar is embedded in this jar file I am using here. Also the eclipse
project classpath contains the path to the jar file correctly. Jar is also
being generated without any error.
Can anyone provide some pointers on how do I procedd to resolve this?
Thanks and Regards,
Tilak Raj Singh
I have a Java Application for xslt transformation which was compiling
correctly using ikvmc and the dll generated was working fine in my app.
Now when I added a few lines of code to my java app as follows
if(tClassName.equalsIgnoreCase("net.sf.saxon.TransformerFactoryImpl"))
((net.sf.saxon.Controller)transformer).setMessageEmitter(new
net.sf.saxon.serialize.MessageWarner());
and generating dll using the command
call ikvmc -debug -target:library -nostdlib
-lib:C:\Windows\Microsoft.NET\Framework\v4.0.30319 FMXSLTJava.jar
-out:FMXSLTJava.dll
following warning messages are being thrown
IKVM.NET Compiler version 7.2.4630.5
Copyright (C) 2002-2012 Jeroen Frijters
http://www.ikvm.net/
warning IKVMC0123: Assuming assembly reference "System, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" matches "System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", you may
need to supply runtime policy
warning IKVMC0100: Class "net.sf.saxon.Controller" not found
warning IKVMC0100: Class "net.sf.saxon.serialize.MessageWarner" not found
warning IKVMC0111: Emitted java.lang.NoClassDefFoundError in
"FMJAXPInvoker.transform(Ljavax.xml.transform.Source;Ljavax.xml.transform.Source;Ljavax.xml.transform.Result;[Ljava.lang.String;)Z"
("net.sf.saxon.serialize.MessageWarner")
ignoring these messages as given on several other forums and proceeding to
use this generated dll in my app causes it to crash on this particular line
of code which I have inserted.
saxon9he.jar is embedded in this jar file I am using here. Also the eclipse
project classpath contains the path to the jar file correctly. Jar is also
being generated without any error.
Can anyone provide some pointers on how do I procedd to resolve this?
Thanks and Regards,
Tilak Raj Singh