随笔分类 -  Java

JDK免安装版,解压后需要配置环境变量
摘要:Linux安装完jdk后需要配置环境变量vi /etc/profileexport JAVA_HOME=/home/icet/jdk1.7.0_75export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport PATH... 阅读全文

posted @ 2015-07-01 18:48 mt86 阅读(1427) 评论(0) 推荐(0)

session的使用
摘要:Java中getRequest().getSession().removeAttribute("tempTotalScore");getRequest().getSession().setAttribute("tempTotalScore", totalScore);freemarker中 ... 阅读全文

posted @ 2015-04-03 17:50 mt86 阅读(103) 评论(0) 推荐(0)

centos6.5上卸载和安装JDK7
摘要:查看jdkrpm -aq|grep java或者rpm -aq|grep gcj区别删除rpm -e --nodeps XXX安装jdkrpm -ivh jdk-7u25-linux-i586.rpm以下可以不配置===========配置路径vi /etc/profile修改文件JAVA_HOME... 阅读全文

posted @ 2015-01-29 21:18 mt86 阅读(321) 评论(0) 推荐(0)

tomcat7配置自启动
摘要:vi /etc/rc.local写入startup.sh的所在路径;/home/apache_tomcat7/bin/startup.sh:wq! 阅读全文

posted @ 2015-01-29 21:16 mt86 阅读(126) 评论(0) 推荐(0)

用Eclipse进行远程Debug代码
摘要:首先你本地Eclipse上要有和部署在远程服务器一至的项目,否则debug的时候会出现代码行错位,难以达到debug的效果。例如:如果你本地的代 码加了行,修改了,或减了一行。而远程服务器上的项目没有变化,则debug的时候会发现行号不对,或debug出来的值有偏差等。1.打开Eclipse,点击左... 阅读全文

posted @ 2015-01-26 17:46 mt86 阅读(468) 评论(0) 推荐(0)

Eclipse中Java文件引入包找不到
摘要:import com.sun.org.apache.xml.internal.serialize.OutputFormat;import com.sun.org.apache.xml.internal.serialize.XMLSerializer;在工程上右击,>properties> 阅读全文

posted @ 2015-01-05 13:09 mt86 阅读(383) 评论(0) 推荐(0)

Java循环map集合
摘要:1 Map map = new LinkedHashMap(); 2 map.put(1, "星期一"); 3 map.put(2, "星期二"); 4 map.put(3, "星期三"); 5 map.put(4, "星期四"); 6 map.put(5, "星期五"); 7 map.put(6... 阅读全文

posted @ 2014-12-31 13:00 mt86 阅读(358) 评论(0) 推荐(0)

导航