以下是我的代码,ACCESS数据库放于SRC文件下 
package del; 
import java.sql.*; 
public class DBHelper { 
  public static Connection getCon() 
  { 
  // JDBC驱动 
  String classname = "sun.jdbc.odbc.JdbcOdbcDriver"; 
  // 数据库地址 
  String URL = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ="+DBHelper.class.getResourceasstream("/album.mdb")+""; //我要的是access的相对路径 
  //数据库连接对象 
  Connection conn=null; 
  try { 
// 加载JDBC驱动 
Class.forName(classname); 
// 连接数据库 
conn = DriverManager.getConnection(URL); 
} catch (ClassNotFoundException e) { 
// TODO Auto-generated catch block 
e.printStackTrace(); 
} catch (SQLException e) { 
// TODO Auto-generated catch block 
e.printStackTrace(); 

return conn; 
  } } 
运行时出现这样的异常 
# An unexpected error has been detected by  HotSpot Virtual Machine: 

# EXCEPTION_ACCESS_VIOLATION () (0xc0000005) at pc=0x00490064,pid=644,tid=700 

# Java VM:java HotSpot(TM) Client VM (1.5.0._11-b03 mixed mode) 
# Problematic frame: 
# C 0x00490064 

# An error report file with more  information is saved as hs_err_pid644.log 

# If you would like to submit a bug report, please visit: 
# http://java.sun.com/webapps/bugreport/crash.jsp