使用Java 9和Java 10在Eclipse上从Tomcat删除java.endorsed.dirs [英] removing java.endorsed.dirs from Tomcat on Eclipse with Java 9 and Java 10

查看:75
本文介绍了使用Java 9和Java 10在Eclipse上从Tomcat删除java.endorsed.dirs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IDE中将Eclipse 4.7.3a与Tomcat 9.0.4结合使用.我从Java 8升级到Java10.我将JAVA_HOME更改为指向JDK 10安装.我进入Eclipse,并创建了一个新的JDK,它安装了指向Java 10 JDK的JRE,然后选择了它.我重建了项目,并尝试启动我拥有的Tomcat服务器.它说:

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.

我四处寻找,发现在Eclipse的Tomcat启动配置中,参数"选项卡下有以下VM参数:

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"

我删除了最后一部分,-Djava.endorsed.dirs="C:\bin\tomcat\endorsed",然后单击应用",但所做的更改并未粘滞";回到该对话框时,该值仍然存在,并且仍然无法运行Tomcat.

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.

如何从Eclipse Tomcat配置中删除java.endorsed.dirs系统属性?

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

更好的是,我该如何完全避免该问题? Eclipse和Tomcat还不支持Java 9+吗? Tomcat 9的较新版本是否可以解决该问题?我应该删除并重新添加Eclipse服务器吗?我该如何找到问题的根源?

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?

推荐答案

我也有这个 WTP 插件更新到最新版本之前和之后的问题 .5),甚至解决该问题的最新Eclipse(Oxygen.3a)也未包含.

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.

这篇关于使用Java 9和Java 10在Eclipse上从Tomcat删除java.endorsed.dirs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆