Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why -noverify added at the end of JVM arguments

I try to run my JAVA application with JVM arguments in Eclipse. I noticed that a "-noverify" String is appended each time at the end of the parameters, which makes them unusable because I need that as a patch to my config files. (And the program say: "/home/user/config.properties-noverify" isn't exists.)

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. With Eclipse version 4.8.

I Googled a lot but I didn't find any answers.

Can somebody explain to me what is this and how can I use it in a proper way?

like image 519
SiGe Avatar asked Aug 29 '17 10:08

SiGe


Video Answer


1 Answers

The JVM checks the byte code of the compile classes it is about to load to see that it is well behaved. 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. The "-noverify" flag turns this off.

It sounds like that you need a space after your own string so the "-noverify" flag is not concatenated. If you cannot do this, then make a work around like "-Dignore" which becomes -Dignore-noverify and then your code should work.

like image 58
Thorbjørn Ravn Andersen Avatar answered Oct 21 '22 20:10

Thorbjørn Ravn Andersen