You should use FirefoxBinary instead of FirefoxProfile as below
FirefoxBinary binary = new FirefoxBinary(new File("path/to/binary"));FirefoxOptions options = new FirefoxOptions();options.setBinary(binary);IWebDriver driver = new FirefoxDriver(options);