纯真数据库dat文件无法实例问题



private IPSeeker() {
        ipCache = new Hashtable();
        loc = new IPLocation();
        buf = new byte[100];
        b4 = new byte[4];
        b3 = new byte[3];
        try {
            ipFile = new RandomAccessFile(IP_FILE, "r");
        } catch (FileNotFoundException e) {
            System.out.println(IPSeeker.class.getResource("QQWry.dat")
                    .toString());
            System.out.println(IP_FILE);
            System.out.println("IP地址信息文件没有找到,IP显示功能将无法使用");
            ipFile = null;

        }
        // 如果打开文件成功,读取文件头信息
        if (ipFile != null) {
            try {
                ipBegin = readLong4(0);
                ipEnd = readLong4(4);
                if (ipBegin == -1 || ipEnd == -1) {
                    ipFile.close();
                    ipFile = null;
                }
            } catch (IOException e) {
                System.out.println("IP地址信息文件格式有错误,IP显示功能将无法使用");
                ipFile = null;
            }
        }
    }

    /**
     * @return 单一实例
     */
    public static IPSeeker getInstance() {
        return instance;
    }


网上找的一个QQ的纯真数据库IP文件, 在我的机器上都行,放别人机器上实例失败没找到qqwry文件,, 文件和class类放一个包里,
求问这么解决 ,

路径对不对,你可以用qqwry的绝对路径等试试。