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

前端 未结 15 1716
忘掉有多难
忘掉有多难 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:19

    Sorry for updating an old POST. I got the reported problem and I solved it as said below.

    Assuming you are using Eclipse + m2e maven plugin, if you get this access restriction error, right click on the project/module in which you have the error --> Properties --> Build Path --> Library --> Replace JDK/JRE to the one that is used in eclipse workspace.

    I followed the above steps and the issue is resolved.

提交回复
热议问题