You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by cb...@apache.org on 2004/05/18 18:01:42 UTC
cvs commit: xml-fop/src/java/org/apache/fop/image ImageFactory.java
cbowditch 2004/05/18 09:01:42
Modified: src/java/org/apache/fop/image ImageFactory.java
Log:
added more friendly message when Jimi/JAI is not present
Revision Changes Path
1.8 +7 -4 xml-fop/src/java/org/apache/fop/image/ImageFactory.java
Index: ImageFactory.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/image/ImageFactory.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ImageFactory.java 12 May 2004 23:19:52 -0000 1.7
+++ ImageFactory.java 18 May 2004 16:01:42 -0000 1.8
@@ -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.
@@ -186,6 +186,9 @@
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;
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org