Re: [Ikvm-developers] ClassLoader for some, not other IKVM in single project
Brought to you by:
jfrijters
|
From: Trevor W. <tw...@da...> - 2012-02-29 17:04:08
|
This works great. PDFBox is using an older version of the library and loading the ClassLoader via setProperties works wonderfully. Well, kinda. but that's a new message coming through! On 02/29/2012 2:35 AM, Jeroen Frijters wrote: > Hi Trevor, > > The best solution would really be not to mess with the global system class loader and instead figure out how to properly configure the class loaders for PDFBox and Tika. > > Having said that, if PDFBox and Tika use different IKVM versions then you should be able to use ikvm.runtime.Startup.setProperties() to set the java.system.class.loader property for the Tika version without affecting the PDFBox version. > > Regards, > Jeroen > >> -----Original Message----- >> From: Trevor Watson [mailto:tw...@da...] >> Sent: Tuesday, February 28, 2012 19:47 >> To: ikv...@li... >> Subject: [Ikvm-developers] ClassLoader for some, not other IKVM in >> single project >> >> Hello! >> >> We currently use IKVM to use PDFBox in a project of ours. It's >> used by an external DLL (plugin) that we created to read PDF files for >> our project. This works quite well on it's own without loading a >> classLoader through the app.config. >> >> We recently wanted to add Tika to read files other than PDF files. >> This requires that we add the classLoader to the program's app.config >> (<app key="ikvm:java.system.class.loader" >> value="Project.MySystemClassLoader, Project">). This allows the Tika >> component to run >> >> Since the PDFBox DLL is an external utility (and I'm guessing more >> because the DLL is stored in a different directory and doesn't have >> access to the Project), the PDFBox reader now fails. >> >> Is there a way to load IKVM with a ClassLoader for a specific >> instance? >> >> Trevor >> >> ------------------------------------------------------------------------ >> ------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Ikvm-developers mailing list >> Ikv...@li... >> https://lists.sourceforge.net/lists/listinfo/ikvm-developers |