摘要: java -cp 和 -classpath 一样,是指定类运行所依赖其他类的路径,通常是类库,jar包之类,需要全路径到jar包,window上分号“;”格式:java -cp .;myClass.jar packname.mainclassname 表达式支持通配符,例如:java -cp .;c 阅读全文
posted @ 2019-07-03 19:46 wqbin 阅读(2530) 评论(0) 推荐(0) 编辑
摘要: (1)直接运行 .class的方法 java -cp . com.guangfa.demo1 , 不用加.class后缀 .-cp 是 -classpath 缩写,是指定类运行所依赖其他类的路径,通常是类库,jar包之类,需要全路径到jar包,window上分号";" (2)从eclipse中exp 阅读全文
posted @ 2019-07-03 19:43 wqbin 阅读(732) 评论(1) 推荐(0) 编辑
摘要: 查看jar包内容 查看jar包内容的基本命令: 查看jar包内容 查看jar包内容的基本命令: jar tf jar-file 参数解释: The t option indicates that you want to view the table of contents of the JAR fi 阅读全文
posted @ 2019-07-03 19:03 wqbin 阅读(15830) 评论(0) 推荐(1) 编辑