philipstaffordwood / infra-problem

worked out infrastructure as code problem
0 stars 0 forks source link

`make clean all fails with java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(client.clj:1:1) #2

Closed philipstaffordwood closed 1 year ago

philipstaffordwood commented 1 year ago

Steps:

make clean all

Error:

>8 -----------------------------
Compiling front-end.core
java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(client.clj:1:1)
Exception in thread "main" java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(client.clj:1:1)
>8 -----------------------------
philipstaffordwood commented 1 year ago

This seems to be caused by the Java version used. See: https://github.com/bhauman/lein-figwheel/issues/612#issuecomment-455838326

philipstaffordwood commented 1 year ago

OpenJDK 8 builds successfully

sudo apt-get install openjdk-8-jdk
update-java-alternatives --list
sudo update-java-alternatives --set java-1.8.0-openjdk-amd64