jdk命令行工具

[size=medium]1. jar
[url]http://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html[/url]
Common JAR file operations
To create a JAR file
jar cf jar-file input-file(s)

To view the contents of a JAR file
jar tf jar-file

To extract the contents of a JAR file
jar xf jar-file

To extract specific files from a JAR file
jar xf jar-file archived-file(s)

To run an application packaged as a JAR file (requires the Main-class manifest header)
java -jar app.jar

To invoke an applet packaged as a JAR file
<applet code=AppletClassName.class
archive="JarFileName.jar"
width=width height=height>
</applet>


[url]https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jar.html[/url]

2. java
in Windows, there are space in folder name or directory name
>"C:\Program Files\Java\jdk1.8.0_25\bin\java" -cp . com.test.HelloWorld


Remote Debug
"C:\Program Files\Java\jdk1.8.0_25\bin\java" -Xdebug -Xrunjdwp:transport=dt_socket,address=8881,server=y,suspend=y -Xms256m -Xmx256m -cp test.jar com.test.HelloWorld

the command will make the java app suspend and wait for the client debugger tool like Eclipse to connect, use "Socket Attach" as the connection type.


3. javac
compile code with debug info
debug="true"
debuglevel="lines,vars,source"

4. javadoc
5. native2ascii [/size]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值