summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Bowditch <cbowditch@apache.org>2004-05-18 16:01:42 +0000
committerChris Bowditch <cbowditch@apache.org>2004-05-18 16:01:42 +0000
commited04b0d0fe793c97e12dbe1f0103c39b419e1792 (patch)
treee87918e8f20473f5a95f431b451039a57a0287bb /src
parent922918acfefd17dd6487f1f0b2bb43a016ae2be5 (diff)
downloadxmlgraphics-fop-ed04b0d0fe793c97e12dbe1f0103c39b419e1792.tar.gz
xmlgraphics-fop-ed04b0d0fe793c97e12dbe1f0103c39b419e1792.zip
added more friendly message when Jimi/JAI is not present
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197606 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/image/ImageFactory.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/image/ImageFactory.java b/src/java/org/apache/fop/image/ImageFactory.java
index 75ffff95b..935662a67 100644
--- a/src/java/org/apache/fop/image/ImageFactory.java
+++ b/src/java/org/apache/fop/image/ImageFactory.java
@@ -1,12 +1,12 @@
/*
* Copyright 1999-2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-/* $Id$ */
+/* $Id: ImageFactory.java,v 1.7 2004/05/12 23:19:52 gmazza Exp $ */
package org.apache.fop.image;
@@ -186,6 +186,9 @@ public class ImageFactory {
Object[] initArgs = new Object[1];
initArgs[0] = imgInfo;
imageInstance = imageConstructor.newInstance(initArgs);
+ } catch (ClassNotFoundException cnfe) {
+ log.error("Class " + imgClassName + " not found. Check that Jimi/JAI is in classpath");
+ return null;
} catch (java.lang.reflect.InvocationTargetException ex) {
Throwable t = ex.getTargetException();
String msg;