Hi Daniel,

Yes, I am using Windows and I installed ant.

However, I still cannot get the .dll files. Here is what I did. I downloaded the file "pdfbox-0.8.0-incubating-src.jar", upzip it to folder "pdfbox-0.8.0-incubating-src" which I will refer as the root folder. Then I go into the root folder which contains the "build.xml" file with the command line. Then I typed ant build.NET. The result was attached as the file "ant build.NET result.txt". As a result, there is a new folder "target" generated. Inside "target" folder, there are two files and one folder. They are: "pdfbox-0.8.0-incubating.jar", "pdfbox-0.8.0-incubating.war", and "classes" (it's a folder). However, in either of them, I cannot find the .dll files. And the "bin" folder which is in the same folder as build.xml is empty. Then if I try to use "ikvmc -out:pdfbox.dll pdfbox-0.8.0-incubating.jar", it gives many warnings saying that classes are missed (the error message is long so I didn't attach it here).

Is there somethings I did wrongly? BTW, I am a little confused that why there is no ikvmc command involved in the steps you taught me?

Best,

Felix


Daniel Wilson wrote:
Install ant.

Make sure it is on your path (I'm assuming you're developing in Windows ...)

Change to the trunk directory.

type* ant build.NET*

All the Java should build and, assuming there are no errors, all the DLL's should be created.

hth,
Daniel

On Thu, Nov 19, 2009 at 11:13 PM, Shen Wang <[email protected] <mailto:[email protected]>> wrote:

    Hi Daniel,

    To make it clear, in the last email when I as about how you used
    ANT set up to compile the PDFBox, I mean how to use ikvmc to
    compile PDFBox and some other related packages like fontbox etc.
    into .dll libraries (pdfbox.dll, fontbox.dll). Thank you!


    Best,

    Felix


    Daniel Wilson wrote:
    Do you ANT set up and building through the build.xml file that's
provided with the source?
    ant build.NET

    should create all the DLL's you need.  I have tweaked mine a
    little in order to build a strong-named version, but we really
    need to get yours building before we bother with a strong name.

    Daniel

    On Wed, Nov 18, 2009 at 7:26 PM, Shen Wang
    <[email protected] <mailto:[email protected]>> wrote:

        Hi Daniel,

        Thanks for sharing with us the .net version of PDFBox 0.8.0.
        I have no problem of using it. Now I need to extend some of
        the classes in PDFBox (written in JAVA) and want to compile
        it into .net version. However, I got problems with that since
        it always misses some classes when I use "ikvmc
        MyExtendedClass.java". I also tried to use ikvmc command to
        compile the pdfbox package as well. But I think I must do
        something wrong since I can only get a single compiled file
        while when I checked the .zip file you shared, the pdfbox,
        fontbox and so on are all separated .dll files. Could you
        please give me a reference on how you compiled the pdfbox?

        Thanks and best regards!

        Felix



        Daniel Wilson wrote:
        I do maintain the ability to do an IKVM build ... so would be glad to
        collaborate on those releases.  I use strictly the .Net version as I'm
        really a Windows developer, not a Java developer.

        2009/10/13 Andreas Lehmkühler <[email protected]> 
<mailto:[email protected]>

        Hi,

        Daniel Wilson schrieb:
        A signed / strong-named version is now available at
        https://issues.apache.org/jira/browse/PDFBOX-535
        Great news, for all those .NET users.

        As noted in that issue, it is from the 0.8.0-incubating version -- which
        is,
        if I'm not much mistaken, what we released.
        Thanks for the effort!!
        I hope we will find an easy way to release the .NET version as part of
        the offical version of pdfbox.

        BR
        Andreas Lehmkühler





G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating>ant 
build.NET
Buildfile: build.xml

checkForIKVM:

get.externallibs:

testexist:

downloadfile:
    [mkdir] Created dir: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external
      [get] Getting: 
http://repo1.maven.org/maven2/org/apache/lucene/lucene-core/2.4.1/lucene-core-2.4.1.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external\lucene-core-2.4.1.j
ar

testexist:

downloadfile:
      [get] Getting: 
http://repo1.maven.org/maven2/org/apache/lucene/lucene-demos/2.4.1/lucene-demos-2.4.1.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external\lucene-demos-2.4.1.
jar

testexist:

downloadfile:
      [get] Getting: 
http://repo1.maven.org/maven2/org/apache/pdfbox/fontbox/0.8.0-incubator/fontbox-0.8.0-incubating.ja
r
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external\fontbox-0.8.0-incub
ating.jar

testexist:

downloadfile:
      [get] Getting: 
http://repo1.maven.org/maven2/org/apache/pdfbox/jempbox/0.8.0-incubator/jempbox-0.8.0-incubating.ja
r
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external\jempbox-0.8.0-incub
ating.jar

testexist:

downloadfile:
      [get] Getting: 
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external\ant.jar

testexist:

downloadfile:
      [get] Getting: 
http://repo2.maven.org/maven2/bouncycastle/bcmail-jdk14/136/bcmail-jdk14-136.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external\bcmail-jdk14-136.ja
r

testexist:

downloadfile:
      [get] Getting: 
http://repo2.maven.org/maven2/bouncycastle/bcprov-jdk14/136/bcprov-jdk14-136.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external\bcprov-jdk14-136.ja
r

testexist:

downloadfile:
      [get] Getting: 
http://repo2.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external\junit-3.8.2.jar

testexist:

downloadfile:
      [get] Getting: 
http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external\commons-logging-1.1
.1.jar

testexist:

downloadfile:
      [get] Getting: 
http://repo1.maven.org/maven2/com/ibm/icu/icu4j/3.8/icu4j-3.8.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\external\icu4j-3.8.jar

pdfbox.init:
    [mkdir] Created dir: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\target\classes
    [mkdir] Created dir: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\website\build\site\
javadoc
    [mkdir] Created dir: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\bin
    [mkdir] Created dir: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\test\output
    [mkdir] Created dir: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\test\output\renderi
ng
    [mkdir] Created dir: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\test\output-ext
    [mkdir] Created dir: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\test\output-ext\ren
dering

find.adobefiles:

get.adobefiles:

testexist:

downloadfile:
    [mkdir] Created dir: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\download
      [get] Getting: 
http://repo2.maven.org/maven2/com/adobe/pdf/pcfi/2009.06.14/pcfi-2009.06.14.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\download\pcfi-2009.06.14.jar


testexist:

downloadfile:
      [get] Getting: 
http://issues.apache.org/jira/secure/attachment/12413828/additional_cmaps.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\download\additional_cmaps.ja
r

testexist:

downloadfile:
      [get] Getting: 
http://issues.apache.org/jira/secure/attachment/12413648/removed_cmaps.jar
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\download\removed_cmaps.jar

testexist:

downloadfile:
    [mkdir] Created dir: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\target\classes\Reso
urces
      [get] Getting: 
http://issues.apache.org/jira/secure/attachment/12413646/glyphlist.txt
      [get] To: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\target\classes\Resources\gly
phlist.txt
    [unjar] Expanding: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\download\pcfi-2009.06
.14.jar into 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\target\classes\Resources\cmap
    [unjar] Expanding: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\download\additional_c
maps.jar into 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\target\classes\Resources\cmap
    [unjar] Expanding: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\download\removed_cmap
s.jar into 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\target\classes\Resources\cmap
    [unjar] Expanding: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\download\pcfi-2009.06
.14.jar into 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\target\classes\Resources\afm

compile:
    [javac] Compiling 420 source files to 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\ta
rget\classes
    [javac] 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\src\main\java\org\apache\pdfbox\
encryption\DocumentEncryption.java:42: warning£º[deprecation] 
org.apache.pdfbox.pdmodel.encryption ÖÐµÄ org.apache.pdfbox.p
dmodel.encryption.PDStandardEncryption was deprecated
    [javac] import org.apache.pdfbox.pdmodel.encryption.PDStandardEncryption;
    [javac]                                            ^
    [javac] 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\src\main\java\org\apache\pdfbox\
PDFDebugger.java:357: warning£º[deprecation] java.awt.Window show() was 
deprecated
    [javac]         viewer.show();
    [javac]               ^
    [javac] 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\src\main\java\org\apache\pdfbox\
PDFReader.java:272: warning£º[deprecation] java.awt.Window show() was deprecated
    [javac]         viewer.show();
    [javac]               ^
    [javac] 3 warnings
    [javac] Compiling 11 source files to 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\tar
get\classes

package:
[propertyfile] Creating new property file: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\s
rc\main\resources\Resources\pdfbox.version
      [jar] Building jar: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\target\pdfbox-0.8.
0-incubating.jar
      [zip] Building zip: 
G:\Program\C#\Reference\pdfbox-0.8.0-incubating-src\pdfbox-0.8.0-incubating\target\pdfbox-0.8.
0-incubating.war

build.NET:

BUILD SUCCESSFUL
Total time: 40 seconds

Reply via email to