我正在尝试将网站从 Wicket 1.5.8 迁移到 1.6.20。构建失败,显示错误描述:
The type org.apache.wicket.markup.html.IHeaderResponse cannot be resolved. It is indirectly referenced from required .class files
OKCancelWindow.java /LatinParserK/src/main/java/com/<site>/access line 1 Java Problem
文件 OKCancelWindow.java 在第一行显示错误
package com.<site>.access;
The project was not built since its build path is incomplete. Cannot find the class file for org.apache.wicket.markup.html.IHeaderResponse. Fix the build path then try building this project
LatinParserK Unknown Java Problem
我不确定是指定文件还是指定库有问题。有什么想法吗?
最佳答案
此类已移至包org.apache.wicket.markup.head
。确保您的 Wicket 库也升级到 6.x。
关于java - 迁移到 1.6 后无法解析 IHeaderResponse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33745723/