WARNING messages while compiling dll from jar using saxon fro class not found
Tilak Raj Singh <[email protected]> Thu, 8 Jun 2017 17:04:24 +0530
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <CAOktwS_usCOUkMDr4SyoRCyNsZKF78-HVicDpG1We_j1Hx4Mkw@mail.gmail.com> |
--===============6485706294871197447==
Content-Type: multipart/alternative; boundary="94eb2c05be9819e2790551713cca"
--94eb2c05be9819e2790551713cca
Content-Type: text/plain; charset="UTF-8"
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
--94eb2c05be9819e2790551713cca
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi All,<div><br></div><div>I have a Java Application for x=
slt transformation which was compiling correctly using ikvmc and the dll ge=
nerated was working fine in my app.</div><div><br></div><div>Now when I add=
ed a few lines of code to my java app as follows=C2=A0</div><div><br></div>=
<div><div>if(tClassName.equalsIgnoreCase("net.sf.saxon.TransformerFact=
oryImpl"))</div><div><span class=3D"gmail-Apple-tab-span" style=3D"whi=
te-space:pre"> </span>((net.sf.saxon.Controller)transformer).setMessageEm=
itter(new net.sf.saxon.serialize.MessageWarner());</div></div><div><br></di=
v><div>and generating dll using the command=C2=A0</div><div><br></div><div>=
call ikvmc -debug -target:library -nostdlib -lib:C:\Windows\Microsoft.NET\F=
ramework\v4.0.30319 FMXSLTJava.jar -out:FMXSLTJava.dll<br></div><div><br></=
div><div>following warning messages are being thrown</div><div><br></div><d=
iv><div><a href=3D"http://IKVM.NET">IKVM.NET</a> Compiler version 7.2.4630.=
5</div><div>Copyright (C) 2002-2012 Jeroen Frijters</div><div><a href=3D"ht=
tp://www.ikvm.net/">http://www.ikvm.net/</a></div><div><br></div><div>warni=
ng IKVMC0123: Assuming assembly reference "System, Version=3D4.0.0.0, =
Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089" matches "Sy=
stem, Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e0=
89", you may need to supply runtime policy</div><div>warning IKVMC0100=
: Class "net.sf.saxon.Controller" not found</div><div>warning IKV=
MC0100: Class "net.sf.saxon.serialize.MessageWarner" not found</d=
iv><div>warning IKVMC0111: Emitted java.lang.NoClassDefFoundError in "=
FMJAXPInvoker.transform(Ljavax.xml.transform.Source;Ljavax.xml.transform.So=
urce;Ljavax.xml.transform.Result;[Ljava.lang.String;)Z"</div><div>=C2=
=A0 =C2=A0 ("net.sf.saxon.serialize.MessageWarner")</div></div><d=
iv><br></div><div>ignoring these messages as given on several other forums =
and proceeding to use this generated dll in my app causes it to crash on th=
is particular line of code which I have inserted.</div><div><br></div><div>=
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.</div><div><br></div><div>Can anyone pro=
vide some pointers on how do I procedd to resolve this?</div><div><br></div=
><div>Thanks and Regards,</div><div>Tilak Raj Singh</div><div><br></div></d=
iv>
--94eb2c05be9819e2790551713cca--
--===============6485706294871197447==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============6485706294871197447==
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
--===============6485706294871197447==--