本文介绍了导入com.lowagie.database.DatabaseConnection时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完成了第1章练习,现在转到第2章。我在第一次DatabaseTest体验,我在导入语句上遇到错误:

I completed Chapter 1 exercises and moved now to Chapter 2. I am on first "DatabaseTest" expercise and I am getting error on import statements:

import com.lowagie.database.DatabaseConnection;

import com.lowagie.database.HsqldbConnection;

我从。

任何人都可以请建议我做错了什么,如果我需要一些额外的文件?

Can anyone please suggest what am I doing wrong and if I need some additional files?

推荐答案

我是编写这些例子的Lowagie。我不知道你做错了什么,但让我解释一下我做了什么。每次发布时,我都会在iText服务器上查看SVN的所有示例和jar,将新的iText.jar复制到 lib 目录,然后运行 ant执行。 (我不是手动执行此操作,我有一个shell脚本可以为我执行此操作。)ANT在book目录的根目录中使用 build.xml , turn使用 examples.xml 。这些脚本会自动构建您可以在iText站点上找到的所有PDF。这每次都有效(如果没有,我就麻烦了)。也许你可以这样开始,然后尝试找出与你所做的不同的事情。

I'm the Lowagie who wrote these examples. I don't know what you're doing wrong, but let me explain what I do. With every release, I check out all examples and jars from SVN on the iText server, copy the new iText.jar to the lib directory, and I run ant execute. (I don't do this manually, I have a shell script that does this for me.) ANT uses the build.xml in the root of the book directory, which in turn uses the examples.xml. These scripts automatically build all PDFs that you can find on the iText site. This works every time (if it doesn't, I'm in trouble). Maybe you can start like this, and then try to isolate what is different with what you do.

这篇关于导入com.lowagie.database.DatabaseConnection时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 02:28