自己写的实现方式,菜鸟级别。请大家指教:
java代码:
MultiPartRequestWrapper multipartRequest = (MultiPartRequestWrapper) this.getMyRequest();
File[] file = multipartRequest.getFiles("file");//获得文件
String[] arrayfile = multipartRequest.getFileNames("file");//获得文件名
String contextPath = this.getMyRequest().getContextPath() ...
java.lang.ClassNotFoundException: com.sun.tools.javac.Main
使用resin在eclipse里调试时终于解决了这个问题了!原因其实很简单:
右键:properties-->librares-->选中jre edit-->选中alternate jre
明白了吧:原来这里配的是jre
点installed jres...
然后把tools.jar那几个包加上就ok了!
- 13:28
- 浏览 (586)
- 评论 (0)







评论排行榜