zoukankan
html css js c++ java
netbeans打包成jar
文件页里找到build.xml文件,打开在</project>前 加入以下代码保存之
按 Ctrl+C 复制代码
<target name="package-for-store" depends="jar"> <!-- Change the value of this property to be the name of your JAR, minus the .jar extension. It should not have spaces. <property name="store.jar.name" value="MyJarName"/> --> <property name="store.jar.name" value="SwitchHexAndChinese"/> <!-- don't edit below this line --> <property name="store.dir" value="store"/> <property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/> <echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/> <delete dir="${store.dir}"/> <mkdir dir="${store.dir}"/> <jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip"> <zipgroupfileset dir="dist" includes="*.jar"/> <zipgroupfileset dir="dist/lib" includes="*.jar"/> <manifest> <attribute name="Main-Class" value="${main.class}"/> </manifest> </jar> <zip destfile="${store.jar}"> <zipfileset src="${store.dir}/temp_final.jar" excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/> </zip> <delete file="${store.dir}/temp_final.jar"/> </target>
按 Ctrl+C 复制代码
build.xml右键即可打包生成SwitchHexAndChinese.jar
生成的文件
查看全文
相关阅读:
C# 文件上传下载
javaScript的三种储存方式
XDocument常用属性
NoSQL
SQLserver 的分页存储过程
Redis Wendows安装步骤
C#和JS获取时间
api跨域
以太坊开发DApp入门教程——区块链投票系统(一)
android和java以太坊开发区块链应用使用web3j类库
原文地址:https://www.cnblogs.com/zhaocundang/p/5041049.html
最新文章
Windows Server、 Windows 区别
第六十九课、自定义内存管理
第十六课、顺序存储结构的抽象实现----------狄泰软件学院
第十五课、线性表的顺序存储结构--------------狄泰软件学院
第十四课、线性表的本质和操作-----------------狄泰软件学院
第十三课、类族的结构进化-------------------狄泰软件学院
第十二课、顶层父类的创建------------狄泰软件学院
第十一课、异常类的构建-------------狄泰软件学院
第九课、智能指针示例------狄泰软件学院
小程序中实现websocket
热门文章
Vue项目部署过程记录
MYSQL 字段不能减为负数
Linux打包压缩文件夹
linux清除git账号密码
crontab常用命令
fastadmin引入gatewaywork遇到的坑
MySQL数据库中如何查询分组后每组中的最后一条记录
MySql远程访问
腾讯地图逆地址解析
C# 接口与抽象类的区别? 什么情景下使用接口,什么情景下使用抽象类?
Copyright © 2011-2022 走看看