You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Tiaan Pat <se...@hotmail.com> on 2011/06/03 10:43:19 UTC

PDFBOX 1.5 dll's

Hi 

I am trying to use pdfbox and I have a few problems in getting it to work in .net.
I tried using pdfbox 0.7.3 and I get this error “The type initializer for 'gnu.java.util.regex.RESyntax' threw an exception.”
I cant seem to figure out why its giving this error. I then tried to get the latest version 1.5 but I cant manage to get the dll’s from the java.

Is there anyone that can please help me with this or guide me in the right direction. There isn’t a lot of data on the internet or I am just not looking 
in the right place. 

Your help would be much appreciated.

Regards
Tiaan

serafax@hotmail.com

Re: PDFBOX 1.5 dll's

Posted by Bill Burns <bi...@gmail.com>.
On Fri, Jun 3, 2011 at 4:43 AM, Tiaan Pat <se...@hotmail.com> wrote:
> Hi
>
> I am trying to use pdfbox and I have a few problems in getting it to work in .net.
> I tried using pdfbox 0.7.3 and I get this error “The type initializer for 'gnu.java.util.regex.RESyntax' threw an exception.”
> I cant seem to figure out why its giving this error. I then tried to get the latest version 1.5 but I cant manage to get the dll’s from the java.
>
> Is there anyone that can please help me with this or guide me in the right direction. There isn’t a lot of data on the internet or I am just not looking
> in the right place.
>
> Your help would be much appreciated.
>
> Regards
> Tiaan

1. Here's the software versions I have installed:

C:\Documents and Settings\bill>ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

C:\Documents and Settings\bill>mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
Maven home: C:\Program Files\Apache Software Foundation\apache-maven-3.0.3
Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_25\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"

C:\Documents and Settings\bill>ikvm -version
IKVM.NET Launcher version 0.46.0.1
Copyright (C) 2002-2011 Jeroen Frijters
http://www.ikvm.net/

CLR version: 2.0.50727.3620 (32 bit)
mscorlib: 2.0.0.0
ikvm: 0.46.0.1
System: 2.0.0.0
IKVM.OpenJDK.Core: 0.46.0.1
IKVM.Runtime: 0.46.0.1
System.Configuration: 2.0.0.0
System.Xml: 2.0.0.0
OpenJDK version: OpenJDK 6 b22

2. I have of the above installed per their instructions (see
individual web sites) and
the appropriate environment variables set (again per instructions).

3. After checking out the latest PDFBox source, I modified build.xml
under the "pdfbox" directory.
Here's the diff:

43a44
>     <property name="fontbox.name" value="fontbox-1.6.0" />
53a55
>     <property name="jempbox.name" value="jempbox-1.6.0" />
114c116
<     <property name="ikvm.dir" value="."/>
---
>     <property name="ikvm.dir" value="C:\\Program Files\\IKVM\\ikvm-0.46.0.1"/>

3a. Without the two lines added for "fontbox.name" and "jempbox.name"
my build produced:
${fontbox.name}.dll and ${jempbox.name}.dll instead of the appropriately named:
fontbox-1.6.0.dll and jempbox-1.6.0.dll

3b. Changing the "ikvm.dir" is per the build instructions and "value"
should be set to the root
of _your_ ikvm directory.

4. Open a command prompt and cd into the "pdfbox" directory (where
build.xml lives).

5. Execute the following command -> ant build.NET

I get quite a few warnings (so I'm not positive my setup is 100%), but
it does build the binaries.

Bill