```ubuntu@ubuntu:kotlin$ compiler/cli/bin/kotlinc-...
# compiler
v
Copy code
ubuntu@ubuntu:kotlin$ compiler/cli/bin/kotlinc-js

Error: Could not find or load main class org.jetbrains.kotlin.preloading.Preloader
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.preloading.Preloader
Do I have to compile the whole project or is there a way of load the JAR files?
u
You have to compile the project (e.g. via
./gradlew dist
) and then run
dist/kotlinc/bin/kotlinc-js
💯 1