`
neil.zou
  • 浏览: 12307 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
文章列表
From: http://bathome.l3.wuyou.com/thread-3885-1-1.html 【方案一】以点结尾的文件夹 rem 创建以点结尾的文件夹 md "C:\test" md "C:\test\batcher..\" rem 把以点结尾的文件夹重命名为普通文件夹 rem 短文件名可以使用dir/x命令获得 ren "C:\test\BATCHE~1" "batcher" rem 把普通文件夹重命名为以点结尾的文件夹 ren "C:\test\batcher" &quo ...
1. Open Run dialog. 2. Add VM argument: -Dfile.encoding=UTF-8 3. Change the Console encoding to UTF-8 Done, try to run your application in Eclipse again.
jdk提供了Zip相关的类方便的实现压缩和解压缩。使用方法很简单。下边分别是压缩和解压缩的简单事例 1,压缩的 import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; public class Zip ...
java中文件操作大全 一.获得控制台用户输入的信息 Java代码 /** *//**获得控制台用户输入的信息 * @return * @throws IOException */ public String getInputMessage() throws IOException...{ System.out.println("请输入您的命令∶"); byte buffer[]=new byte[1024]; int count=System.in.read(buffer); char[] ch=new char[count-2];//最后两位 ...
在java对oracle的操作中,日期字段是很头疼的事情,其实仔细研究一下也并不难掌握。 举个例子来说明: 表 book  中有name varchar2(20)//书籍名称,buydate Date //购买日期 两个字段。 已经创建了数据库连接Connection conn; 方法一、使用j ...
in the file: ${jboss-home}/bin/run.bat, add below command: set JAVA_OPTS= -Xdebug -Xnoagent   -Xrunjdwp:transport=dt_socket,address=8787,   server=y, suspend=n %JAVA_OPTS% Create a new Remote Java Application In Eclipse and set up the connection. Add java exception breakpoint. Visit your applic ...
In web.xml <context-param> <param-name>a</param-name> <param-value>test</param-value> </context-param> In JSP <%= application.getInitParameter("a")%>
2008-06-10 02:46:59,469 [ajp-0.0.0.0-8009-2] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OnRoute].[jsp] - Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response         at org.apache.ca ...

Class Loader

    博客分类:
  • Java
private Properties getSetting() { Properties pro = new Properties(); try { URL setting = this.getClass().getClassLoader().getResource("com/neil/test.properties"); pro.load(setting.openStream()); } catch(java.io.IOException iox){ print(iox.ge ...
From: http://www.chinaunix.net/jh/26/137481.html 常常在网上看到有人询问:如何把 java 程序编译成 .exe 文件。通常回答只有两种,一种是制作一个可执行的 JAR 文件包,然后就可以像.chm 文档一样双击运行了;而另一种是使用 JET 来进行 编译。但是 JET 是要用钱买的,而且据说 JET 也不是能把所有的 Java 程序都编译成执行文件,性能也要打些折扣。所以,使用制作可执行 JAR 文件包的方法就是最佳选择了,何况它还能保持 Java 的跨平台特性。  下面就来看看什么是 JAR 文件包吧:  1. JAR 文件包  ...
IN THE FILE: /etc/profile add: export JAVA_HOME=/usr/local/java/jdk1.6.0_03 export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar execute: source /etc/profile
Global site tag (gtag.js) - Google Analytics