我正在尝试在 ejre 上运行 restlet。在具有普通 jre 的 eclipse 中,代码工作得非常好,但在 ejre 中我得到以下异常:
java.lang.ClassNotFoundException: com.sun.net.httpserver.HttpHandler cannot be found
我正在使用 restlet v. 2.2.1。用于 jee 和 Java SE Embedded Runtime Environment(build 1.7.0_21-b11,headless)Java HotSpot Embedded Client VM(build 23.21-b01,混合模式)
我尝试了restlet v. 2.1。如here所述,但它不起作用。
有人有类似的问题吗?