Hi, I'm setting up CCNET server to run Selenium tests. In my test code I use the following to start the Selenium RC server if its not running:
var proc = new Process();
proc.StartInfo.WorkingDirectory = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName, @"..\..\..\..\..\lib\SeleniumRC\selenium-server-1.0-beta-2");
proc.StartInfo.FileName = "java"; //have also tried with "java.exe"
proc.StartInfo.Arguments = @"-jar selenium-server.jar -multiWindow -trustAllSSLCertificates -firefoxProfileTemplate ""..\Firefox Profiles\Relaxed Security""";
proc.StartInfo.UseShellExecute = true;
proc.Start();
This works great on my development machine. However, when I run it from CCNET.exe (under a user context), I can see that instead of executing the java.exe process, an explorer window pops up for "c:\windows\java". I think my path settings are messed up but I'm not sure how. Can you help?