Thanks Peter, here is the code, I changed the url to goole due to our site is not public yet, every time I ran this code, it will brings up a new browser in stead of a new window in my current browser :import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class testcode {
public static void main(String[] args) {
WebDriver d2 =new FirefoxDriver();
d2.get ("http://www.google.com");
Whenever you run a code like "new FirefoxDriver()" this will create an object representing Firefox browser and each time you instantiate a new Firefox Browser, each object of Firefox browser is independent to work with. I think a new Firefox profile (by default) will be created for each instantiation of "FirefoxDriver" class, unless and until you instantiate a "FirefoxProfile" class and supply an argument to "FirefoxDriver" class constructor. Big guns out here in this group will definitely let you know more in details.
Warm Regards
Pankaj