How can I run Chrome Portable instead of regular Chrome?

Hi,

I am using this code to start Chrome portable.

This is my code:
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject

import java.awt.Robot
import java.awt.Toolkit
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection
import java.awt.event.KeyEvent

import org.openqa.selenium.By
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.chrome.ChromeDriver

import com.kms.katalon.core.util.KeywordUtil as KeywordUtil
import com.kms.katalon.core.webui.driver.DriverFactory;
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

import internal.GlobalVariable as GlobalVariable

String chromePath = “C:\Dev\ChromePortable64\GoogleChromePortable.exe”;
String chromedriverpath=“C:\Users\m.woehlte\Katalon Studio 6.3.2\configuration\resources\drivers\chromedriver_win32\chromedriver.exe”;
ChromeOptions myOptions = new ChromeOptions();
myOptions.setBinary(chromePath);
System.setProperty(“webdriver.chrome.driver”,chromedriverpath);
WebDriver driver = new ChromeDriver(myOptions);
DriverFactory.changeWebDriver(driver);

The last executed line is: WebDriver driver = new ChromeDriver(myOptions);

Chrome starts and in the background I get a cmd window.

The next line is not executed but after a while I get this:

And this exception:

SLF4J: The requested version 1.7.16 by your slf4j binding is not compatible with [1.6]
SLF4J: See SLF4J Error Codes for further details.
2019-11-05 15:18:24.349 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-11-05 15:18:24.352 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Matthias - Mathias
2019-11-05 15:18:25.173 DEBUG testcase.Matthias - Mathias - 1: chromePath = “C:\Dev\ChromePortable64\GoogleChromePortable.exe”
2019-11-05 15:18:25.175 DEBUG testcase.Matthias - Mathias - 2: chromedriverpath = “C:\Users\m.woehlte\Katalon Studio 6.3.2\configuration\resources\drivers\chromedriver_win32\chromedriver.exe”
2019-11-05 15:18:25.180 DEBUG testcase.Matthias - Mathias - 3: myOptions = new org.openqa.selenium.chrome.ChromeOptions()
2019-11-05 15:18:25.230 DEBUG testcase.Matthias - Mathias - 4: myOptions.setBinary(chromePath)
2019-11-05 15:18:25.238 DEBUG testcase.Matthias - Mathias - 5: System.setProperty(“webdriver.chrome.driver”, chromedriverpath)
2019-11-05 15:18:25.256 DEBUG testcase.Matthias - Mathias - 6: driver = new org.openqa.selenium.chrome.ChromeDriver(myOptions)
Starting ChromeDriver 76.0.3809.68 (420c9498db8ce8fcd190a954d51297672c1515d5-refs/branch-heads/3809@{#864}) on port 25896
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
2019-11-05 15:19:27.084 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/Matthias - Mathias FAILED.
Reason:
org.openqa.selenium.WebDriverException: unknown error: DevToolsActivePort file doesn’t exist
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘NBCID210’, ip: ‘10.104.4.187’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:
Ordinal0 [0x00507C93+1473683]
Ordinal0 [0x0048ADB1+961969]
Ordinal0 [0x004142E3+475875]
Ordinal0 [0x003AEA04+59908]
Ordinal0 [0x003ABBD7+48087]
Ordinal0 [0x003C9149+168265]
Ordinal0 [0x003C8D1D+167197]
Ordinal0 [0x003C742B+160811]
Ordinal0 [0x003B0AE6+68326]
Ordinal0 [0x003B1BF0+72688]
Ordinal0 [0x003B1B89+72585]
Ordinal0 [0x004A4B77+1067895]
GetHandleVerifier [0x005A6875+506677]
GetHandleVerifier [0x005A6610+506064]
GetHandleVerifier [0x005AD1B8+533624]
GetHandleVerifier [0x005A704A+508682]
Ordinal0 [0x0049C266+1032806]
Ordinal0 [0x0049C0DF+1032415]
Ordinal0 [0x004A6A8B+1075851]
Ordinal0 [0x004A6BF3+1076211]
Ordinal0 [0x004A5BA5+1072037]
BaseThreadInitThunk [0x77138494+36]
RtlAreBitsSet [0x776F41C8+136]
RtlAreBitsSet [0x776F4198+88]

at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157)
at Matthias - Mathias.run(Matthias - Mathias:27)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1572963501690.run(TempTestCase1572963501690.groovy:21)

2019-11-05 15:19:27.101 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Matthias - Mathias

After clicking on => continue

I use chromedriver in version 76.0.3809.68
I use chrome portable in version 76.0.3809.132 (already tried 76.0.3809.100 and 76.0.3809.68)
My Katalon Studio is version 6.3.2

What’s wrong.

Kind regards