In an Unix environment, if I am running a Java code and I would like to re-run it with different parameters, could I recompile it with no data loss? Will the previous Java task still run without get stuck?
Cheers,
Simone
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can run multilpe instances of the same java program with different (command line ) parameters without re-compiling.
Running different versions of the same program and re-compiling at run time is possible, but if you modify a class file while the program is running it may affect the current runtime if that file had not been loaded yet.
You should create another working copy of the class files or jar files and then launch the copy after modifying it if you want to gave two different versions running at the same time.
If your program modifications can be changed to property file or other configuration file mods, I think that is a better solution.