sorcerdon / FOP.NetCore

A pure port of Apache FOP that can be used in .NET Core projects.
7 stars 2 forks source link

IKVM Project Recommendation #1

Open wasabii opened 1 year ago

wasabii commented 1 year ago

I wanted to make you aware of this recommendation/advice from the IKVM project:

https://github.com/ikvmnet/ikvm/blob/develop/README.md

Notice To Project Owners The IKVM project recommends that people do not redistribute FOSS Java libraries compiled with IKVM over public systems such as NuGet.org, unless you are the original owner of that software and have a very good reason.

Creating copies of FOSS Java libraries and publishing them to distribution mechanisms such as NuGet.org creates eco-system confusion and dependency conflicts downstream. We provide a system so that .NET users of Java libraries can reference those libraries directly out of the standard Java ecosystem mechanisms: Maven Central, etc though IKVM.Maven. Remember, very few libraries exist in a vacuum. Libraries often depend on dozens of other libraries. Two unrelated Java libraries often depend on the same underlying Java library. A complex method of dependency conflict resolution and version unification has to be involved in resolving this hierarchy for any individual downstream project. You are likely going to be introducing duplicate classes into the users of your versions, or causing your users to depend upon the wrong version of other libraries.

There are exceptions to this advice, such as the library not being published to Maven. In that case, guidance would be to advocate that the original Java library in fact be published to Maven, or do the work yourself, as that is the appropriate place for Java libraries.

We cannot force you to conform to this advice. But for the health of the ecosystem, we urge you to take it under consideration yourself.

sorcerdon commented 1 year ago

@wasabii

Correct. However, in order to actually generate the .NET Core version for FOP was quite a lengthy process that took days. So instead of wasting other people's time to do the same, I put forth a quick solution that is Plug-n-Play.

wasabii commented 1 year ago

I understand.

You can now add it directly into your csproj using Maven, however.

sorcerdon commented 1 year ago

@wasabii Some people were having errors when adding Maven references directly to their project. The main issue was duplicate assemblies getting loaded at runtime.

sorcerdon commented 1 year ago

@wasabii Other issues included other exceptions like: AccessViolationException

You can see an example here: https://ikvm-developers.narkive.com/2x3wALCu/ikvm-classloader-mechanism-loading-native-dlls-with-jna

wasabii commented 1 year ago

That is from 15 years ago. IKVM.Maven.Sdk was released 12 months ago.

sorcerdon commented 1 year ago

Happened to me very recently when I tried following that path. Try this:

Create a new .NET Core app Include a direct maven reference to https://mvnrepository.com/artifact/org.apache.xmlgraphics/fop And then try to generate a PDF from a FO file

wasabii commented 1 year ago

Eh, I just noticed an issue presently. Fop on Maven seems to refer to the JBoss repository for some dependencies (javax.media:jai-core). And it looks like repository.jboss.org updated their SSL settings, and that breaks in the current IKVM version.

Fixing it.

sorcerdon commented 1 year ago

Eh, I just noticed an issue presently. Fop on Maven seems to refer to the JBoss repository for some dependencies (javax.media:jai-core). And it looks like repository.jboss.org updated their SSL settings, and that breaks in the current IKVM version.

Fixing it.

Yes. This is one of the errors I was seeing - I can't build the project because of this issue:

image

wasabii commented 1 year ago

This should now be resolved in IKVM.Maven.Sdk 1.5.5.

We're still pretty far behind in keeping up to date with OpenJDK 8. We just successfully brought it up to JDK8u92, including the native bits for Eliptic Curve Cryptography. Which it looks like in the last month or so began impacting communication with jboss.org, whom probably messed with their SSL settings or something. Or maybe it was just key sizes.

Either way, IKVM talks to jboss.org again.

wasabii commented 1 year ago

I just successfully added a reference to fop-core 2.8 to a clean project, and did a transform of a .fo and .xml file to a PDF.

This is the extent of my .csproj file, for reference:

<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <LangVersion>10</LangVersion>
        <TargetFrameworks>net6.0</TargetFrameworks>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="IKVM" Version="8.6.1" />
        <PackageReference Include="IKVM.Maven.Sdk" Version="1.5.5" />
        <MavenReference Include="org.apache.xmlgraphics:fop-core" Version="2.8" />
    </ItemGroup>

    <ItemGroup>
        <None Update="align.xml">
            <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
        </None>
        <None Update="align.fo">
            <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
        </None>
    </ItemGroup>

</Project>

And for the code:

using java.io;

using javax.xml.transform;
using javax.xml.transform.sax;
using javax.xml.transform.stream;

using org.apache.fop.apps;

namespace ConsoleApp26
{
    public static class Program
    {

        public static void Main(string[] args)
        {
            var outputStream = new FileOutputStream("out.pdf");
            var fopFactory = FopFactory.newInstance(new File(".").toURI());
            var userAgent = fopFactory.newFOUserAgent();
            var fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent, outputStream);
            var transformerFactory = TransformerFactory.newInstance();
            var transformer = transformerFactory.newTransformer(new StreamSource(new File("align.fo")));
            transformer.setParameter("version", "1.0");
            var xmlSource = new StreamSource(new File("align.xml"));
            var result = new SAXResult(fop.getDefaultHandler());
            transformer.transform(xmlSource, result);
        }

    }

}
sorcerdon commented 1 year ago

@wasabii Can you provide the source files you used?

It did compile for me, however, after getting the raw test files from Apache FOP I am getting the following error: image

wasabii commented 1 year ago

You should be able to just use whatever XML and stylesheet you want. I had just grabbed some example after googling.

wasabii commented 1 year ago

align.zip

sorcerdon commented 1 year ago

@wasabii

Great, that did work! Thank you for fixing that - I believe this fix would resolve many issue people are facing if they know that they can reference Maven packages.

BTW, I did notice that referencing Maven packages does take a little bit longer to compile than when referencing Nuget packages - I have never used Maven directly in a Java project, is that the norm?

wasabii commented 1 year ago

Hi.

Well, I mean, it does convert every referenced Maven project from a JAR to a DLL, so that takes time.

pftcpq commented 1 year ago

@wasabii

Hello, and thank you for the info above!

Your suggestion helps me greatly because I was previously unable to get FOP.NetCore to run in .NET 8.

I built console app exactly as shown above, with align.fo and it successfully produced PDF output.

However I noticed a large number of exceptions shown in visual studio debug output. I this normal?

'ConsoleApp2.exe' (CoreCLR: DefaultDomain): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Private.CoreLib.dll'. Symbols loaded. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.dll'. Symbols loaded. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\hotreload\Microsoft.Extensions.DotNetDeltaApplier.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.Pipes.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Linq.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Collections.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Console.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Threading.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.InteropServices.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Threading.Overlapped.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.Principal.Windows.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.AccessControl.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.Claims.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.Loader.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Collections.Concurrent.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\IKVM.Java.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\fop.core.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\xmlgraphics.commons.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\IKVM.Runtime.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Text.Json.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.InteropServices.RuntimeInformation.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Threading.Thread.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.Extensions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Reflection.Emit.Lightweight.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Reflection.Primitives.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Reflection.Emit.ILGeneration.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.FileSystem.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Memory.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.Intrinsics.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Text.Encoding.Extensions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Diagnostics.FileVersionInfo.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Diagnostics.Process.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.ComponentModel.Primitives.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Collections.NonGeneric.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\Microsoft.Win32.Primitives.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Private.Uri.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Diagnostics.TraceSource.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Reflection.Emit.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Diagnostics.StackTrace.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\commons.logging.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.Serialization.Formatters.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Collections.Specialized.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\Microsoft.CSharp.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\Microsoft.VisualBasic.Core.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\Microsoft.VisualBasic.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\Microsoft.Win32.Registry.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\runtimes\win\lib\net6.0\Microsoft.Win32.SystemEvents.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\mscorlib.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\netstandard.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.AppContext.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Buffers.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Collections.Immutable.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.ComponentModel.Annotations.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.ComponentModel.DataAnnotations.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.ComponentModel.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.ComponentModel.EventBasedAsync.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.ComponentModel.TypeConverter.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Configuration.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Core.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Data.Common.dll'. Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Data.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\runtimes\win\lib\net6.0\System.Data.Odbc.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Diagnostics.Contracts.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Diagnostics.Debug.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Diagnostics.DiagnosticSource.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Diagnostics.TextWriterTraceListener.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Diagnostics.Tools.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Diagnostics.Tracing.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\runtimes\win\lib\net6.0\System.Drawing.Common.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Drawing.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Drawing.Primitives.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Dynamic.Runtime.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Globalization.Calendars.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Globalization.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Globalization.Extensions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.Compression.Brotli.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.Compression.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.Compression.FileSystem.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.Compression.ZipFile.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.FileSystem.AccessControl.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.FileSystem.DriveInfo.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.FileSystem.Primitives.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.FileSystem.Watcher.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.IsolatedStorage.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.MemoryMappedFiles.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.UnmanagedMemoryStream.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Linq.Expressions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Linq.Parallel.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Linq.Queryable.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.Http.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.HttpListener.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.Mail.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.NameResolution.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.NetworkInformation.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.Ping.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.Primitives.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.Requests.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.Security.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.ServicePoint.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.Sockets.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.WebClient.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.WebHeaderCollection.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.WebProxy.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.WebSockets.Client.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.WebSockets.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Numerics.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Numerics.Vectors.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.ObjectModel.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Reflection.DispatchProxy.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Reflection.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Reflection.Extensions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Reflection.Metadata.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Reflection.TypeExtensions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Resources.Reader.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Resources.ResourceManager.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Resources.Writer.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.CompilerServices.VisualC.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.Handles.dll'. Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.Numerics.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.Serialization.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.Serialization.Json.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.Serialization.Primitives.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.Serialization.Xml.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.Cryptography.Algorithms.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.Cryptography.Cng.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.Cryptography.Csp.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.Cryptography.Encoding.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\runtimes\win\lib\net6.0\System.Security.Cryptography.Pkcs.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.Cryptography.Primitives.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\runtimes\win\lib\net6.0\System.Security.Cryptography.ProtectedData.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.Cryptography.X509Certificates.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.Principal.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.SecureString.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.ServiceModel.Web.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.ServiceProcess.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Text.Encoding.CodePages.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Text.Encoding.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Text.RegularExpressions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\runtimes\win\lib\net6.0\System.Threading.AccessControl.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Threading.Channels.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Threading.Tasks.Dataflow.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Threading.Tasks.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Threading.Tasks.Extensions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Threading.Tasks.Parallel.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Threading.ThreadPool.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Threading.Timer.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Transactions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Transactions.Local.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.ValueTuple.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Web.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Web.HttpUtility.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Windows.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\runtimes\win\lib\net6.0\System.Windows.Extensions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Xml.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Xml.Linq.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Xml.ReaderWriter.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Xml.Serialization.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Xml.XDocument.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Xml.XmlDocument.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Xml.XmlSerializer.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Xml.XPath.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Xml.XPath.XDocument.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\WindowsBase.dll'. Exception thrown: 'System.IO.DirectoryNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.DirectoryNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\System.Security.Permissions.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Security.Cryptography.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\System.Configuration.ConfigurationManager.dll'. Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.IO.Pipes.AccessControl.dll'. Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Net.Quic.dll'. Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Private.DataContractSerialization.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Formats.Asn1.dll'. Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Private.Xml.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Private.Xml.Linq.dll'. Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\IKVM.ByteCode.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\Mono.Unix.dll'. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0-preview.2.23128.3\System.Runtime.CompilerServices.Unsafe.dll'. Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'ClassLoadingException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in commons.logging.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.NoSuchMethodException' in IKVM.Java.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\org.apache.commons.io.dll'. Module was built without symbols. Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'java.io.FileNotFoundException' in IKVM.Runtime.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'java.io.FileNotFoundException' in IKVM.Runtime.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.anim.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.dom.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.i18n.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.css.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.util.dll'. Module was built without symbols. Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.shared.resources.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.constants.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\xml.apis.ext.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.ext.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.xml.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\xml.apis.dll'. Module was built without symbols. Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.bridge.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.gvt.dll'. Module was built without symbols. Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.awt.util.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.parser.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.svg.dom.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.script.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.extension.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.transcoder.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.svggen.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\batik.codec.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\fop.events.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\fop.util.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\qdox.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\ant.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\ant.launcher.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\servlet.api.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\org.apache.fontbox.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\jai.core.dll'. Module was built without symbols. 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'C:\temp\ConsoleApp2\bin\Debug\net8.0\jai.codec.dll'. Module was built without symbols. Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.1' in IKVM.Java.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'com.sun.org.apache.bcel.internal.generic.TargetLostException' in IKVM.Java.dll Exception thrown: 'com.sun.org.apache.bcel.internal.generic.TargetLostException' in IKVM.Java.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'ikvm_dynamic_assembly__228258000'. Exception thrown: 'com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.1' in IKVM.Java.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'org.apache.fop.fo.expr.PropertyException' in fop.core.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'System.IO.FileNotFoundException' in System.Private.CoreLib.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.1' in IKVM.Java.dll 'ConsoleApp2.exe' (CoreCLR: clrhost): Loaded 'fop.core-ikvm-runtime-injected'. Exception thrown: 'com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.1' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'System.IO.FileNotFoundException' in IKVM.Runtime.dll Exception thrown: 'System.IO.FileNotFoundException' in IKVM.Runtime.dll Exception thrown: 'System.IO.FileNotFoundException' in IKVM.Runtime.dll Exception thrown: 'java.awt.color.ProfileDataException' in IKVM.Java.dll Exception thrown: 'java.awt.color.ProfileDataException' in IKVM.Java.dll Exception thrown: 'java.awt.color.ProfileDataException' in IKVM.Java.dll Exception thrown: 'java.awt.color.CMMException' in IKVM.Java.dll Exception thrown: 'java.lang.IllegalArgumentException' in IKVM.Java.dll Exception thrown: 'java.awt.color.CMMException' in IKVM.Java.dll Exception thrown: 'java.lang.IllegalArgumentException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'java.nio.charset.UnsupportedCharsetException' in IKVM.Java.dll Exception thrown: 'com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.1' in IKVM.Java.dll Exception thrown: 'com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.1' in IKVM.Java.dll The program '[3068] ConsoleApp2.exe' has exited with code 0 (0x0).

wasabii commented 1 year ago

To the extent that those are exceptions thrown when running on Java, yup.

dibble-james commented 7 months ago

@wasabii, I'm trying to setup a similar scenario, but with a slightly more complex XSLT, but end up with java.lang.IllegalAccessError: Try to access field org.apache.fop.util.text.AdvancedMessageFormat.COMMA_SEPARATOR_REGEX from class org.apache.fop.util.text.IfFieldPart, my understanding is this would be down to the IKVM issue @sorcerdon was referring too above with multiple/incorrect dependencies?

My csproj

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
  </PropertyGroup>

  <!--<ItemGroup>
    <PackageReference Include="FOP.NetCore" Version="3.0.0" />
  </ItemGroup>-->

  <ItemGroup>
    <PackageReference Include="IKVM" Version="8.6.1" />
    <PackageReference Include="IKVM.Maven.Sdk" Version="1.5.5" />
    <MavenReference Include="org.apache.xmlgraphics:fop-core" Version="2.8" />
  </ItemGroup>

</Project>

EDIT: I should add that it does work with the align example you're using above, but I'm obviously going down a code path that loads some more classes

wasabii commented 7 months ago

Wanna open a bug on the IKVM issue tracker? With a repro. And maybe use the latest version.

dibble-james commented 7 months ago

@wasabii Will do, using FOP.NetCore also works with both the align example and my more complex scenario, but I can't see how @sorcerdon has managed to get it to work so there must be some magic needed! @sorcerdon would you be willing to share the secret?

herodrigues commented 3 months ago

@sorcerdon can you tell us how you were able to generate a more complex PDF using IKVM?