Open johanandren opened 1 year ago
It seems that this is probablyt a known issue:
`
Invoking Kalix codegen with command: /Users/francisco/Git/kalix-javascript-sdk/samples/js/js-replicated-entity-shopping-cart/node_modules/@kalix-io/kalix-scripts/bin/kalix-codegen-js.bin --proto-source-dir ./proto --source-dir ./src --generated-source-dir ./lib/generated --test-source-dir ./test
Inspecting proto file descriptor for Kalix code generation...
Exception in thread "main" java.lang.NoClassDefFoundError: kalix.Annotations
This happens when you generate the codegen with Java 17 instead of 11 and then you run npm run build
on one of the samples
.`
To verify this I used Java SDK 11 and rebuilt my own copy of codegen and it works on Windows. So this known issue seems to be a valid thing.
Is there any estimate / idea when that known issue would be fixed?
Not entirely sure I follow.
The codegen is a native executable (using GraalVM) not using any local Java installation, are you saying you rebuilt an image of your own but based on a different GraalVM version than 22.1.0, or that you built the codegen Java library with JDK 17 first and then generated a new native image with the default GraalVM?
Class not found when running codegen on windows only, reported in the forums: https://discuss.kalix.io/t/kalix-annotations-not-found/182