SWT runtime error on Linux - "Unable to find SWT jar for Linux : amd64"
See original GitHub issueExcited 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:
- The uber jar has no dependency jars in it
- 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:
- Created 2 years ago
- Comments:41 (19 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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.