如何在netbeans项目中导入zip文件

编程入门 行业动态 更新时间:2024-10-25 21:19:36
本文介绍了如何在netbeans项目中导入zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我尝试在我的netbeans项目中导入一个zip文件时,我在这行中收到错误 import jericho-html-3.1.src.java.htmlparser .jericho。*;

when I was trying import a zip file in my netbeans project, I get a error in this line import jericho-html-3.1.src.java.htmlparser.jericho.*;

即使我添加了zip文件Libraries文件夹。

even though I added the zip file Libraries folder.

推荐答案

您可能希望将库添加到项目中,以便在代码中调用它。 从行导入jericho-html-3.1.src.java.htmlparser.jericho。*; 我假设您尝试将源代码添加到项目。这不起作用。

You probably want to add library to your project so you could call it in your code. From the line import jericho-html-3.1.src.java.htmlparser.jericho.*; I assume that you try to add source code to the project. This will not work.

您需要添加库库而不是源代码。库文件具有 .jar 扩展名。 从 sourceforge下载zip文件时/projects/jerichohtml/files/jericho-html/3.1/ 该库位于 /jericho-html-3.1/dist / zip文件夹中。

You need to add a library library and not source code. The library file has .jar extension. When you download a zip file from sourceforge/projects/jerichohtml/files/jericho-html/3.1/ The library is in /jericho-html-3.1/dist/ folder of the zip.

有关图书馆的使用,请查看示例程序。

For library usage take a look on Sample Programs.

更多推荐

如何在netbeans项目中导入zip文件

本文发布于:2023-07-16 20:20:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1125521.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   项目   如何在   netbeans   zip

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!