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
生成的文件
查看全文
相关阅读:
Vuex核心属性(上)
layui 将json字符串以表格的形式展现出来
Vue 路由懒加载 和 路由导航守卫
jq遍历服务器发送过来的json字符串
前端的发展
关于定义函数的几种方式 及(箭头函数)
js 子页面获取父页面的值
关于数组的响应式方法和非响应式方法
python3 -- random 模块
多任务编程 -- multiprocessing 模块(创建多进程、进程池使用、进程间通信)
原文地址:https://www.cnblogs.com/zhaocundang/p/5041049.html
最新文章
数学&搜索:博弈论之极大极小搜索与alpha-beta减枝
搜索:状态空间搜索
搜索:枚举多重集组合
搜索:求已知前序、后序可得不同二叉树的棵数
搜索:迭代加深搜索
图论&搜索:K短路-启发式搜索
搜索:启发式搜索
双向宽度优先搜索
模拟:表达式求值
二分法(算法描述)
热门文章
[蓝桥杯][2017年第八届真题]包子凑数(解题报告)
正则问题(解题报告)
博弈(算法描述)
B、小花梨的三角形(解题报告)
并查集(算法描述)
数据结构之树状数组(候补)
int和longlong的范围
神奇C语言的字串处理库函数
Vuex 核心属性(下)
Vuex 核心属性(中)
Copyright © 2011-2022 走看看