我从Google Code下载了一个名为“mp4parser”的项目。
现在我想在我的JSP页面中使用它(特别是在servlet中)。 我该如何导入它?
我使用Netbeans。
在我的项目属性中,我添加了一个库(添加JAR /文件夹)。
然后,在我编写的servlet代码中
import com.googlecode.mp4parser.*;解决了
首先,我必须编译mp4parser项目,然后手动指示JAR文件。 Netbeans无法单独找到它。
I downloaded a project from Google Code named 'mp4parser'.
Now I want to use it in my JSP page (specifically in a servlet). How do I import it?
I use Netbeans.
In my project's properties I added a Library (Add JAR/Folder).
Then, in my servlet code I wrote
import com.googlecode.mp4parser.*;SOLVED
First I had to compile the mp4parser project, and then MANUALLY indicate the JAR file. Netbeans couldn't find it on its own.
最满意答案
您应该创建您下载的项目的jar并将其添加到类路径 ,然后您就可以使用它。
You should create jar of the project you downloaded and the add it to the class path and then you will be able to use it.
更多推荐
发布评论