看看你的is 是不是 null 先
解决方案 »
- 基础的问题:byte[]转int
- 双核电脑与线程问题?
- 求教java一个基本问题,对象相等的问题?
- An unexpected error has been detected by Java Runtime Environment:
- 问一个关于JTable的问题
- getTableCellRendererComponent 中isSelected疑问
- 如何把inputstream转化成blob存入数据库中
- 用SQL语句把数据插入MySQL的问题
- 网络上传输信息时怎么加密?
- 如何制作java的“exe”
- 怎么向JList添加数据? 里面已经有数据了.
- 两个问题一起提共100分,请热心的朋友解答一下,一定给分
为什么还是找不倒呢?
FileInputStream is = new FileInputStream("db.properties");
这里抛出异常.
到底是什么原因啊?我把db.properties和类文件放在同一个目录下了,
为什么还是找不倒呢?
给你一个: /**
* read content from property file
* @param strFullPath
* @return
*/
public Properties loadProps( String strFullPath )
{
Properties props = new Properties(); try
{
File fPropFile = new File( strFullPath );
FileInputStream fis = new FileInputStream( fPropFile );
props.load( fis );
fis.close();
}
catch(Exception ex){}
return props;
}