简体   繁体   English

为什么-noverify在JVM参数的末尾添加

[英]Why -noverify added at the end of JVM arguments

I try to run my JAVA application with JVM arguments in Eclipse . 我尝试在Eclipse中运行带有JVM参数的 JAVA应用程序。 I noticed that a " -noverify " String is appended each time at the end of the parameters, which make them unusable, because I need that as a patch to my config files. 我注意到每次在参数末尾都会附加一个“ -noverify ”字符串,这会使它们无法使用,因为我需要它作为配置文件的补丁。 (And the program say: "/home/user/config.properties-noverify" isn't exists.) (并且程序说:“/ home /user / config.properties-noverify”不存在。)

The arguments are: 论点是:

-Djava.security.egd=file:/dev/./urandom  -Dspring.config.location="/home/sige/guezbin/application.properties" -DconfigPath="/home/sige/eclipse-workspace/ImgCompr/config-default.properties"

I develop under Ubuntu. 我是在Ubuntu下开发的。 With Eclipse version 4.8. 使用Eclipse版本4.8。

I Googled a lot but I didn't found any answers. 我用Google搜索了很多,但我没有找到任何答案。

Can somebody explain me what is this and how can I use it in a proper way? 有人可以解释一下这是什么以及如何以正确的方式使用它?

The JVM checks the byte code of the compile classes it is about to load to see that it is well behaved. JVM检查要加载的编译类的字节代码,以查看它是否表现良好。 This is an essential step for executing untrusted code. 这是执行不受信任的代码的必要步骤。

Unfortunately this takes time and for a very large application like Eclipse this may increase the startup time quite a bit. 不幸的是,这需要时间,对于像Eclipse这样的大型应用程序,这可能会增加启动时间。 The "-noverify" flag turns this off. “-noverify”标志将其关闭。

It sounds like that you need a space after your own string so the "-noverify" flag is not concatenated. 听起来你需要在自己的字符串之后有一个空格,因此“-noverify”标志不会连接在一起。 If you cannot do this, then make a work around like "-Dignore" which becomes -Dignore-noverify and then your code should work. 如果你不能这样做,那么就像“-Dignore”那样做一个变成-Dignore-noverify然后你的代码应该工作的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM