Hello All, this is my first question on the forum 
I’m enjoying my first app development and time has come to test it on a stand-alone server (ubuntu-derived)
I installed the anvil-app-server and cloned my app via git. But, when I try to run the app, I’m getting a Clojure error with a missing class:
I tried searching online, but all I found is that this error happens on newer JVMs, but since the server presumably uses version 8, so I guess it should not be a problem… Anyone have an idea of a workaround? Thanks so much in advance!
BTW: I also tried with making the generic “todo list” app seen in the screenshot, but the error is the same…
This error usually means the App Server is being started with an older Java version.
java.util.SequencedCollection was added in Java 21, so could you check:
java -version
If that does not say Java 21, please install Java 21 and then make sure your system is using it when you run anvil-app-server.
If you already have Java 21 installed, but still see the error, it usually means your machine has multiple Java versions installed and anvil-app-server is picking up an older one. In that case, please let us know what java -version prints and we can help you point it at the right Java
2 Likes
I installed version 21 and it seems to solve the issue, thank You so much!!!
I think this line in the anvil-app-server manual on github is making the problem and should be updated by the respective owners:
1 Like