随笔分类 -  java

fedora17 安装jdk
摘要:1.jdk下载后下载后直接双击。2.打开ibus:accessories->application finder-->input 阅读全文
posted @ 2013-06-02 11:20 bailun 阅读(193) 评论(0) 推荐(0)
向文件末尾追加内容
摘要:import java.io.*;public class AppendContent{ public static void main(String[] args) { try(RandomAccessFile raf = new RandomAccessFile("out2.txt", "rw")) { raf.seek(raf.length()); raf.write("追加的内容! \r\n".getBytes()); } catch (IOException ex) ... 阅读全文
posted @ 2013-05-29 18:38 bailun 阅读(202) 评论(0) 推荐(0)
如何配置jdk环境变量
摘要:classpath .;C:\Program Files\Java\jdk1.7.0_17\lib;C:\Program Files\Java\jdk1.7.0_17\lib\tools.jarjava_home C:\Program Files\Java\jdk1.7.0_17path C:\Program Files\Java\jdk1.7.0_17\bin在yu的用户变量(U)和系统变量(S)中分别添加 阅读全文
posted @ 2013-04-09 13:43 bailun 阅读(218) 评论(0) 推荐(0)