Hi,

Am 11.01.2013 16:11, schrieb Prakash Dubey:
Hi,
I am trying to build pdfbox 1.7.1 using maven 2 and getting some
MojoFailureException
I have followed the instruction as given in following website [
http://pdfbox.apache.org/userguide/building_pdfbox.html]


Here is how try to build and what type of information came on my
screen.---------------------------------------------

C:\Users\Prakash Kumar\Desktop\pdfbox-1.7.1>mvn clean install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] PDFBox parent
[INFO] Apache FontBox
[INFO] Apache JempBox
[INFO] Apache PDFBox
[INFO] Apache PDFBox for Lucene
[INFO] Apache PDFBox for Ant
[INFO] Apache PDFBox webapp
[INFO] Apache PDFBox application
[INFO] Apache PDFBox examples
[INFO] PDFBox reactor
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building PDFBox parent 1.7.1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ pdfbox-parent
---
[INFO] Deleting C:\Users\Prakash Kumar\Desktop\pdfbox-1.7.1\parent\target
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @
pdfbox-parent ---
[INFO]
[INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @
pdfbox-parent ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
pdfbox-parent ---
[INFO] Installing C:\Users\Prakash
Kumar\Desktop\pdfbox-1.7.1\parent\pom.xml to C:\Users\Prakash
Kumar\.m2\repository\org\apache\pdfbox\pdfbox-parent\1.7.1\pdfbox-parent-
1.7.1.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache FontBox 1.7.1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ fontbox ---
[INFO] Deleting C:\Users\Prakash Kumar\Desktop\pdfbox-1.7.1\fontbox\target
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ fontbox
---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
fontbox ---
[debug] execute contextualize
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Prakash
Kumar\Desktop\pdfbox-1.7.1\fontbox\src\main\resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ fontbox
---
[INFO] Compiling 72 source files to C:\Users\Prakash
Kumar\Desktop\pdfbox-1.7.1\fontbox\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Unable to locate the Javac Compiler in:
   C:\Program Files\Java\jre6\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
Maven already provided the information you are looking. Install a JDK or if it is already there point the JAVA_HOME environment variable to the correct location.

BR
Andreas Lehmkühler

Reply via email to