Community
Participate
Working Groups
Build Identifier: The default HOME on Windows 7 is composed of the HOMEDRIVE and HOMEPATH variables. The HOMEPATH doesn't include the drive name. This will work fine as long as your current drive is the same as your HOMEDRIVE. But if your HOMEDRIVE is C: and you're working on, e.g., D:, the h2.bat will fail with the message "Cannot find H2 jars in .m2 Maven repository". The solution to this would be to use HOME instead of HOMEPATH. Reproducible: Always Steps to Reproduce: 1. Extract greenpages sample onto drive other than that containing the HOMEPATH. E.g. if your home folder is C:\Users\username, put the sample onto D:. 2. Follow the steps for preparing the sample according to this: http://www.eclipse.org/virgo/documentation/virgo-documentation-2.1.1.RELEASE/docs/virgo-getting-started/html/ch03s03.html 3. Observe failure on the step where you try to start run.bat.
Created attachment 194638 [details] Fixed h2.bat I have one Win7 machine that has the HOME environment variable set up and another that doesn't. They both have HOMEDRIVE and HOMEPATH, so I just changed this to use: "%HOMEDRIVE%%HOMEPATH%\.m2" The db starts up properly now.
(In reply to comment #1) > Created attachment 194638 [details] > Fixed h2.bat > > I have one Win7 machine that has the HOME environment variable set up and > another that doesn't. They both have HOMEDRIVE and HOMEPATH, so I just changed > this to use: > > "%HOMEDRIVE%%HOMEPATH%\.m2" > > The db starts up properly now. This might seem silly, but to be squeaky clean from an IP perspective, please would you confirm that you made that change yourself and that you have the rights (such as your employer's permission) to donate the change.
Oh and thanks very much for identifying and fixing this bug!
Hi Rick We would like to release your fix. Please would you confirm that you made that change yourself and that you have the rights (such as your employer's permission) to donate the change. This is an essential part of the Eclipse IP process. Thanks, Glyn
(In reply to comment #4) > We would like to release your fix. Please would you confirm that you made that > change yourself and that you have the rights (such as your employer's > permission) to donate the change. This is an essential part of the Eclipse IP > process. Yes, I made the change myself. My employer is NRG (http://nrg.wustl.edu) and all of our work is released under Simplified BSD, so there are no IP issues regarding ownership of this fix. Let me know if you need anything else from me!
Thanks Rick. I've acknowledged your contribution and mentioned your employer in the 3.0 release notes.