Ok I bit the bullet and wrote this small class just to instantiate chromedriver and exit.
See the comments to compile and run:
Here's the class in case anyone needs this feature.
// -------------------------------------------------------------------------------------------
// This script is to instantiate chromedriver
// Whenever chromedriver starts, it prints to stderr (bummer)
// We have to redirect this script execution to a file in order
// to be able to retrieve and parse the chromedriver version
//
// Requirements:
// - chromedriver must be above the directory where it executes
// - needs to run with selenium-server-standalone in the classpath
//
// Compile with
// set CLASSPATH=c:\Tools\selenium\selenium-2.39.0\selenium-server-standalone-2.39.0.jar;.
// javac -d . GetChromedriverVersion.java
// class is put in ./seltool.updater/GetChromedriverVersion.class
//
// Run with
// java seltool.updater.GetChromedriverVersion 2>someTempFile
// -----------------------------------------------------------------------------------------------
package seltool.updater;
import java.io.*;
import org.openqa.selenium.chrome.ChromeDriverService;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.*;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.firefox.FirefoxDriver;
public class GetChromedriverVersion {
private static ChromeDriverService service;
private WebDriver driver;
public static void main(String[] args)
{
GetChromedriverVersion d = new GetChromedriverVersion();
try
{
service = new ChromeDriverService.Builder()
.usingDriverExecutable( new File( "../chromedriver.exe" ) )
.usingAnyFreePort()
.build();
service.start();
} catch (Exception e) {};
service.stop();
}
}