dataloader: SWT runtime error on Linux - "Unable to find SWT jar for Linux : amd64"

Excited to see work on a Linux build! Been trying to get it working, but no success yet.

Linux Mint 20 OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS) SWT 4.21

Followed readme build steps (success), extracted contents of dataloader_linux.zip, and ran script:

./dataloader.sh
Unable to find SWT jar for Linux : amd64

Tried directly and with classpath, same error:

java -jar dataloader-53.0.1-uber.jar
Unable to find SWT jar for Linux : amd64

java -cp "swtlinux_x86_64/*" -jar dataloader-53.0.1-uber.jar
Unable to find SWT jar for Linux : amd64

Updated SWT to 4.22 using the python script and re-built. New swt files but same error.

Had a java dev take a look, his comments were:

  1. The uber jar has no dependency jars in it
  2. Using Maven to control the classpath gives the same error mvn clean compile -Plinux_x86_64 exec:java -Dexec.mainClass="com.salesforce.dataloader.process.DataLoaderRunner"

HTH

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 41 (19 by maintainers)

Commits related to this issue

Most upvoted comments

Unable to find SWT jar for Windows Server 2019 : x86_64

Hi @ashitsalesforce, Thank you. It worked fine after adding the log-confg.xml file from the repo.

Hi @thomasproductions , you can set JAVA_TOOL_OPTIONS environment variable to -D"os.arch=x86_64" and see if that fixes your issue. hi ashitsalesforce, wanted to let you know that I have everything sussed… adding the run.mode=batch did help. this is a system that I inherited and apparently hadn’t been upgraded in quite a while. took me a couple of days to actually get it to run partially, then adding run.mode=batch solved the remaining error …

thanks

Hi @ashitsalesforce. Yes, it is working now! 🎉 Thank you for the quick update.