I am using a machine where I do not have administrator privileges and I need to set the e.g. JAVA_HOME each time I boot.
Thus, I’d like to write a script that sets the desired classpath automatically.
How do I do this?
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 surely can set the environment variables with a batch file each time you need them, but bear in mind that this will only work for the current process (i. e. the
cmdinstance you’re invoking the batch from) and processes spawned from there. I think you’d rather want persistent environment variables.Now, in the UNIX world you’d just put them into your shell startup script. In Windows … not exactly that way.
JAVA_HOMEandGRAILS_HOMEunder “User variables” there.You would only need administrator access for changing the system environment variables.