Access restriction on class due to restriction on required library rt.jar?

前端 未结 15 2013
忘掉有多难
忘掉有多难 2020-11-22 01:09

I\'m attempting to compile Java 1.4 code that was created by IBM\'s WSDL2Java on Java5 without recreating

15条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 01:20

    http://www.digizol.com/2008/09/eclipse-access-restriction-on-library.html worked best for me.

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

    On Mac OS X/Linux: Eclipse -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules): -> change to warning

提交回复
热议问题