Welcome! Please see the About page for a little more info on how this works.

+1 vote
in On-Prem by
retagged by

I'm not sure if Windows is (or ever was?) a supported platform for Datomic On-Prem, but at the moment when I try to start a REPL, transactor, or peer server in any recent version I get:

"The input line is too long. The syntax of the command is incorrect."

My Datomic path is short (C:\Datomic). I'm guessing the error results from classpath.cmd trying to build a CP_LIST that comprises all 400+ files in lib, though this behaviour is consistent as far back as 0.9.5927, which only has 240 jars in lib; things work as expected in 0.9.5786 (which has 232 jars) and earlier.

I'd rather not use WSL/Docker etc. at this time - can anyone advise if there's a native solution that will allow me to use a version more recent than 2018?

2 Answers

0 votes
by
edited by

I've had this issue and come to the same conclusion on the CP_LIST. To save time, I dealt with the WSL implementation (which also didn't work until I learned to use 0.0.0.0 instead of "localhost" for the host).

by
Hi Aaron, good to know! I'll try this and see how I get on.
0 votes
by
edited by

My working solution:

I have the necessity to run Datomic on a Windows Server which does not have a WSL and the following PowerShell script works.

if (-not $args[0]) {
        echo "Usage: $PSCommandPath properties-file-or-uri"
        return
}

$CP_LIST = "bin;resources;" + ((ls *transactor*.jar, lib\*.jar | % { $_.FullName }) -join ';')

java -server -Xms1024m -Xmx1024m -XX:+UseG1GC -cp $CP_LIST clojure.main --main datomic.launcher $args[0]

When placed under .\bin\transactor.ps1 I can run the command from the PowerShell and it successfully starts the server.

Other scripts need also an update but at least I've got the transactor to run.

...