CData JDBC 驱动程序 | java.lang.Exception: 找不到网络浏览器

CData JDBC Driver | java.lang.Exception: Could not find web browser

所以我从 their official site 下载了 CData JDBC Redis 驱动程序并尝试将其安装到我的系统上。我的系统是运行 Ubuntu 20.04,我早就强行卸载了Firefox。因此,在安装设置时,我在设置完成之前收到此错误:

java.lang.Exception: Could not find web browser
    at com.izforge.izpack.installer.a.d(Unknown Source)
    at com.izforge.izpack.event.NSInstallerListener.afterPacks(Unknown Source)
    at com.izforge.izpack.installer.UnpackerBase.informListeners(Unknown Source)
    at com.izforge.izpack.installer.Unpacker.run(Unknown Source)

我尝试在我朋友的系统上安装,运行 Windows,它安装成功,打开了一个带有网络浏览器列表的弹出窗口,重定向到帮助网页。

我尝试复制粘贴安装在我朋友系统上的文件夹,但没有成功。我收到以下错误:

java.sql.SQLException: This system contains a license for CData JDBC Driver for Redis 2021 that has been installed but not activated.  You must run setup to activate the license on this system [code: I nodeid: 3TUTFKAF].
    at XcoreXredisX210X7930.tjc.a(Unknown Source)
    at XcoreXredisX210X7930.tjc.b(Unknown Source)
    at XcoreXredisX210X7930.jvb.execute(Unknown Source)
    at com.cdata.connectors.ConnectorsApplication.main(ConnectorsApplication.java:31)

我也试过重新安装 Firefox,但没有用。有什么解决方法吗?感谢任何帮助。

我刚才遇到了同样的问题。原来 CData 驱动程序不支持 Google Chrome 用于 Linux 系统:

    public static void d(final String s) throws Exception {
        final String property = System.getProperty("os.name");
        if (property.startsWith("Mac OS")) {
            Runtime.getRuntime().exec("open " + s);
        }
        else if (property.startsWith("Windows")) {
            Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + s);
        }
        else {
            final String[] array = { "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape" };
            String s2 = null;
            for (int n = 0; n < array.length && s2 == null; ++n) {
                if (Runtime.getRuntime().exec(new String[] { "which", array[n] }).waitFor() == 0) {
                    s2 = array[n];
                }
            }
            if (s2 == null) {
                throw new Exception("Could not find web browser");
            }
            Runtime.getRuntime().exec(new String[] { s2, s });
        }
    }

要成功安装驱动程序,请使用 Ubuntu 软件应用程序安装 Opera 或其他受支持的浏览器。