Java - Exception in thread "main" java.lang.NoClassDefFoundError: io/tus/java/client/TusURLStore


I am new here, trying to see if this is a good service or not to use in our business. So I followed the java guide here:

I am basically stuck on creating an Assembly. I copied the exact same code, and filled the other required parameters (the key, secret, etc…). But the problem is I get an error when I run the code. the error is referring to the code in the transloadit SKD.

The error:
Exception in thread "main" java.lang.NoClassDefFoundError: io/tus/java/client/TusURLStore at com.transloadit.sdk.Transloadit.newAssembly( at util.Main.main( Caused by: java.lang.ClassNotFoundException: at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass( at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass( at java.base/java.lang.ClassLoader.loadClass( ... 2 more

The code:

public class Main {
    public static void main(String[] args) {
    Transloadit transloadit = new Transloadit("my key", "my secret");
    Assembly assembly = transloadit.newAssembly(); //Line 17

    Map<String, Object> stepOptions = new HashMap<>();
    stepOptions.put("width", 75);
    stepOptions.put("height", 75);
    assembly.addStep("resize", "/image/resize", stepOptions);

    assembly.addFile(new File("testing.png"));
    // you can skip this part if you don't want to wait till the
    // assembly is complete
    try {
        AssemblyResponse response =;


    } catch (RequestException | LocalOperationException e) {
        // handle exception here

I am using java JDK 11, if that makes any difference…

Ok, I found out that tus-java-client-0.4.1.jar is not being imported by maven as it does not exist in the maven repository, thus I had to download that manually which is bad. Also I had to import version 0.4.0 as I could not find the version spesified in the transloadit 0.1.5 pom file…