
java
文章平均质量分 74
一颗卤蛋
这个作者很懒,什么都没留下…
展开
-
java创建文件夹
File fp = new File("路径"); //判断父目录 File p = new File(fp.getParent()); if (!p.exists()) { p.mkdirs(); } boolean bFile = fp.exists(); if (bFile == true) { } else { bFile = fp.mkdi转载 2014-01-10 17:15:29 · 926 阅读 · 0 评论 -
java调用系统打印机,实现打印
JFileChooser fileChooser = new JFileChooser(); // 创建打印作业 // 获取Systems 数据库中的值(path) Systems system = systemService.getPath("path"); String path = system.getValue(); String fileName = path +转载 2014-01-10 17:26:12 · 3847 阅读 · 0 评论 -
webservices复杂类型值传递
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions java.util.Map is an interface, and JAXB can't handle interfaces. this problem is related to原创 2015-02-13 18:17:02 · 612 阅读 · 0 评论 -
JSONObject
JSONObject用到的jar包: commons-beanutils 1.7.0 commons-collections 3.1 commons-lang commons-logging ezmorph-1.0.3 json-lib-2.4-jdk15.jar 缺少有可能会报错:Could not initialize class net.sf.原创 2015-07-02 17:48:51 · 732 阅读 · 0 评论 -
操作远程计算机文件
public static void main(String[] args) { SshClient client=new SshClient(); try{ client.connect("ip"); PasswordAuthenticationClient pwd = new PasswordAuthenticationC原创 2015-07-01 17:06:39 · 588 阅读 · 0 评论 -
Servlet 调用servlet
request.getRequestDispatcher("/TestServlet(调用的servlet)").forward(req,resp);原创 2015-09-18 14:24:38 · 722 阅读 · 0 评论