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

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

    for me this how I solve it:

    • go to the build path of the current project

    under Libraries

    • select the "JRE System Library [jdk1.8xxx]"
    • click edit
    • and select either "Workspace default JRE(jdk1.8xx)" OR Alternate JRE
    • Click finish
    • Click OK

    Note: make sure that in Eclipse / Preferences (NOT the project) / Java / Installed JRE ,that the jdk points to the JDK folder not the JRE C:\Program Files\Java\jdk1.8.0_74

提交回复
热议问题