开发者

How to use a code within a .jar file while writing a program in NetBeans

开发者 https://www.devze.com 2023-02-16 23:55 出处:网络
I am trying to use the jAudioPackage in a class project. I need it\'s functionality of getting the id3 tag info from the header of a MP3 file. I looked at the website and once you have everything se开

I am trying to use the jAudioPackage in a class project. I need it's functionality of getting the id3 tag info from the header of a MP3 file. I looked at the website and once you have everything se开发者_如何学编程t-up it seems pretty easy to use. I am just having trouble with actually importing the .jar file which contains the code. How would I go about this in NetBeans?

To summarize, I have the .jar file I just dont know how to get to use the code within the file.


Right click on your project and go to Properties -> Libraries -> Add JAR/Folder and select the jar file in the following dialog. It should then have access to it when coding/compiling.


You need to add the jar file in your project's libraries. Read http://netbeans.org/kb/docs/java/project-setup.html#projects-classpath.


Please read the documentation for the library as to what the calls are and then call the required methods in order to accomplish what you are doing. Before you do that you will have to import the jar in to your project...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号