简体   繁体   English

绑定不是由netbeans生成的jar文件中的类文件

[英]binding class files in the jar file not generated by netbeans

When i clean and build my project using netbeans , though it makes the jar file of the project but it doesn't keep those files that i myself kept in the project folder. 当我使用netbeans清理和构建项目时,虽然它会生成项目的jar文件,但不会将我本人保存的那些文件保留在项目文件夹中。 That includes some class files,a music file. 包括一些类文件,一个音乐文件。 What is the reason for this ? 这是什么原因呢? How do i do this ? 我该怎么做呢 ? I want to keep some class files not generated by the netbeans and also the music file. 我想保留一些非netbeans生成的类文件以及音乐文件。

What is the reason for this ? 这是什么原因呢? default Netbeans build.xml don't include other lib files. 默认的Netbeans build.xml不包含其他lib文件。

If you look the dist folder you can see a lib folder too. 如果您查看dist文件夹,则也可以看到一个lib文件夹。 This is your lib folder. 这是您的lib文件夹。 If your lib files is in the classpath you jar run on every where if not your file look ./lib/*.jar 如果您的lib文件位于类路径中,则jar会在文件看起来不是./lib/*.jar的所有位置上运行

You can change your project to ant project or maven project and change your manifest and other files. 您可以将项目更改为ant项目或maven项目,并更改清单和其他文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM