question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:41 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
thomasproductionscommented, Jan 7, 2022

Unable to find SWT jar for Windows Server 2019 : x86_64

1reaction
pa1codehubcommented, Jan 26, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error message is returned when attempting to run Data ...
Issue. “Unable to find SWT jar for <OPERATING SYSTEM> : <HARDWARE ARCHITECTURE>” error message is returned when attempting to run Data Loader in...
Read more >
How to fix Salesforce Data Loader's graphical tooling on Linux
Install an OpenJDK 8 + SWT libraries using your package manager. Find the location of the swt jar. Patch the included org/eclipse/swt classpath ......
Read more >
Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing ...
I'm trying to debug this problem but not sure where exactly i need to replace SWT jar file for Eclipse. ... Workaround: Link1:...
Read more >
Select correct SWT jar for your OS and JVM at runtime
Here is a method to dynamically classload the correct SWT jar depending on your operating system and whether it is 32 or 64...
Read more >
[java] Unable to find SWT jar for Windows Server 2019 : amd64
Receiving this error whenever trying to launch .bat file from windows scheduler. Version Information below: Dataloader: 53.0.2 Java Version: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found