pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Burns <bill.burns...@gmail.com>
Subject Re: PDFBOX 1.5 dll's
Date Mon, 06 Jun 2011 03:49:25 GMT
On Fri, Jun 3, 2011 at 4:43 AM, Tiaan Pat <serafax@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
Copyright (C) 2002-2011 Jeroen Frijters

CLR version: 2.0.50727.3620 (32 bit)
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:

>     <property name="fontbox.name" value="fontbox-1.6.0" />
>     <property name="jempbox.name" value="jempbox-1.6.0" />
<     <property name="ikvm.dir" value="."/>
>     <property name="ikvm.dir" value="C:\\Program Files\\IKVM\\ikvm-"/>

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.


View raw message