Java – eclipse command line parameters
•
Java
I know how to run my application using the run configuration menu and command line parameters
My problem is that whether I update these command line parameters, eclipse will not reflect these updates when executing code
So far, I have set the following parameters:
test1.txt test2.txt dfs
This will print:
args[0] = test1.txt args[1] = test2.txt args[2] = dfs
But if I update the parameter and rerun it, the parameter will not be updated
How to "reset" the parameters and rerun the application with the updated parameters
The upper and lower two functions are normal, which is actually the solar eclipse that caused my problem Solve the problem by simply restarting eclipse
Thank you all
Solution
>Click Run – > run configuration
This is a positive job because I tried it before my answer
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码