-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Java PATH problem on Windows (Fix Issue #813) #814
Fix Java PATH problem on Windows (Fix Issue #813) #814
Conversation
This solves the problem where this batch file may use a different Java version compared to the one provided by the Arduino IDE.
There might be a problem with this PR: as I can see, this will add the same string to PATH each time the batch file will be executed. |
According to this post the solution would be different, but I am not sure that such change is really needed. |
As far as I understand the PATH is only set temporarily. See: set-command |
Ok, that might be true. However, the path you set here is a custom path. Many users (just like me) use the standalone package of Arduino IDE, which means that it may be then installed into another custom folder. In these cases this PR will not work, right? |
Yes, that is correct. This PR will only affect users which installed the Arduino IDE in the default directory, but it won't break anything for other installation variants. |
I think the best solution is to pass the Arduino IDE installation path to the batch file so that the correct path to Java can be set independent on the user preferences. I have tested it and it works. Necessary changes:
Can you please try these changes and adapt this PR accordingly? |
This solution is way better, thanks! I will update the PR tomorrow.
This allows having a space in the path string. |
Passes the Arduino IDE installation path to the batch file.
Passes the Arduino IDE installation path to the batch file.
This solves the problem where this batch file may use a different Java version compared to the one provided by the Arduino IDE.
(see Issue #813)