Hi,
I'm running on a windows machine, trying to build grid based on the instructions I received at this page: http://selenium-grid.openqa.org/build_it_from_source.html Unfortunately when executing "ant dist" the javaLauncherPathIsAValidFilePath test is failing in the JVMLauncherTest class. The reason it is failing is because the JVMLauncher class returns "<java.home>/bin/java"but the windows installation of Java does not include a file called java with no extension. Thus the test is failing as it tries to validate the existence of a file that will never exist in windows.
To get around this problem you can create a file called "java" in your <java.home>/bin/ directory that does nothing but satisfy the test. In the future this test should be modified so it will work out of the box in windows. The best option might be to just check for the existence of the bin directory instead of looking for the file, it can probably be assumed that if a machine has a <java.home> environment variable set that contains a bin directory, it will probably contain a java executable native to that environment.
-j
Hi James,
I'm running on a windows machine, trying to build grid based on the instructions I received at this page: http://selenium-grid.openqa.org/build_it_from_source.html Unfortunately when executing "ant dist" the javaLauncherPathIsAValidFilePath test is failing in the JVMLauncherTest class. The reason it is failing is because the JVMLauncher class returns "<java.home>/bin/java"but the windows installation of Java does not include a file called java with no extension. Thus the test is failing as it tries to validate the existence of a file that will never exist in windows.
Sorry for the trouble and thanks a lot for catching this.
To get around this problem you can create a file called "java" in your <java.home>/bin/ directory that does nothing but satisfy the test. In the future this test should be modified so it will work out of the box in windows. The best option might be to just check for the existence of the bin directory instead of looking for the file, it can probably be assumed that if a machine has a <java.home> environment variable set that contains a bin directory, it will probably contain a java executable native to that environment.
Absolutely. I am working on simple autorestarts for the remote controls for the next Selenium Grid release. I am focusing first on making it work on UNIX/OS X, but I missed the fact that I broke the build on Windows. Sorry about that.
I fixed the tests and you should be able to build Selenium Grid from source without any convoluted workaround now
Let me now if that works for you.
Thanks for your help and feedback!
Cheers,
- Philippe Hanrigou