javavaadinvaadin-flow

ClassNotFoundException in TwinColSelect for Vaadin


I upgraded a system (which was built a few years ago by another developer) from Vaadin 14 to Vaadin 23.5.4. I then also had to upgrade the dependency for twincolselect (with groupId org.vaadin.tatu) to the latest version, 3.2.0. But this exception then comes:

java.lang.ClassNotFoundException: com.vaadin.flow.component.html.NativeLabel TwinColSelect
at org.vaadin.tatu.TwinColSelect.<init>(TwinColSelect.java:146)

It comes when the TwinColSelect is created in our code:

databasesSelect = new TwinColSelect<>();

org.vaadin.tatu.TwinColSelect is imported and used. How can this be solved?


Solution

  • 2.X.X (2.7.0 is the latest) is the correct version for Vaadin 23. The version you are using is for Vaadin 24.

    TwinColSelect Vaadin Add-on

    Vaadin 24+
    Vaadin 23 in 2.7.0
    Vaadin 21 in 2.0.0
    Vaadin 14 in 1.9.1