Eclipse中导入Hrritrix,报错找不到类:sun.www.protocol.file.FileURLConnection


在Heritrix1.14.3配置运行时,出现Error:找不到 sun.net.www.protocol.file.FileURLConnection, 网上找了一下原因是sun包是受保护的包,默认只有sun公司的软件才能使用,Eclipse使用则会报错,只需把对保护使用waring就可以了

具体的做法是:

Windows -> Preferences -> Java -> Compiler -> Errors/Warnings-> Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning

你可能感兴趣的:(java.sun)