In the process of using the cmd command line, the output of "Picked up _JAVA_OPTIONS: -Xmx900M" appears in the dialog box. javac fails to compile normally.
Regarding the problems thrown by the "Picked up _JAVA_OPTIONS:" series of errors, most of these errors are due to the installation of JDK or JRE locally, and then installing other software that will add or change Java environment variables, such as the JAVA-ADDIN plug-in of the common test tool QTP, etc., during the installation process of these software, some JAVA environment variable information will be automatically added, which will lead to conflicts and errors in the environment variables. Therefore, when such an error occurs, you only need to delete all the other JAVA environment variables except for the JAVA_HOME and CLASSPATH originally set, or delete the relevant JAVA_OPTIONS parameters.
The specific process is: enter the Windows environment variable settings, find _JAVA_OPTIONS this variable, delete it, and the redundant environment variable reference in the path, and run cmd again.
My own solution, I executed the set path under the cmd command, and found that the output seemed to be abnormal.The image above is the correct output, the output on my server is not normal
But checking the environment variables, there is no extra path, decisively restarting the server, the problem is solved, I don't know what the specific reason is.
|