endorsed java,使用Java 9和Java 10在Eclipse上从Tomcat中删除java.endorsed.dirs

I'm using Eclipse 4.7.3a with Tomcat 9.0.4 in the IDE. I upgraded from Java 8 to Java 10. I changed my JAVA_HOME to point to the JDK 10 installation. I went into Eclipse and created a new JDK installed JRE pointing at the Java 10 JDK, and selected it. I rebuilt my project, and tried to start the Tomcat server I had. It said:

-Djava.endorsed.dirs=C:\bin\tomcat\endorsed is not supported. Endorsed standards and standalone APIs

in modular form will be supported via the concept of upgradeable modules.

I poked around and found that in the Tomcat launch configuration in Eclipse, under the Arguments tab, there are the following VM arguments:

-Dcatalina.base="I:\work\.metadata\.plugins\org.eclipse.wst.server.core\tmp1" -Dcatalina.home="C:\bin\tomcat" -Dwtp.deploy="I:\work\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps" -Djava.endorsed.dirs="C:\bin\tomcat\endorsed"

I removed the last part, -Djava.endorsed.dirs="C:\bin\tomcat\endorsed", and hit Apply, but the changes don't "stick"; when I come back to that dialog, the value is still there, and I still can't run Tomcat.

How can I removed the java.endorsed.dirs system property from the Eclipse Tomcat configuration?

Better yet, how can I avoid the problem altogether? Isn't Eclipse and Tomcat ready for Java 9+? Will a newer version of Tomcat 9 fix the problem? Should I remove and add back the Eclipse server? How can I get to the root of the problem?

解决方案

I also have this problem before and but after updating WTP plugin to the latest version (3.9.5) which is not included even in the latest Eclipse (Oxygen.3a) to solve the problem.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值