Discuss GraalVM related topics. Use clojure 1.10.2 or newer for all new projects. Contribute to and GraalVM slack:
dominicm 2020-09-20T15:59:21.024900Z

I'm struggling to understand what I'm doing wrong, does this error look familiar to anyone?

Exception in thread "main" java.lang.ExceptionInInitializerError
	at clojure.lang.Namespace.<init>(
	at clojure.lang.Namespace.findOrCreate(
	at clojure.lang.Var.internPrivate(
	at dominic.httpkit.<clinit>(Unknown Source)
Caused by: Could not locate clojure/core__init.class, clojure/core.clj or clojure/core.cljc on classpath.
	at clojure.lang.RT.load(
	at clojure.lang.RT.load(
	at clojure.lang.RT.<clinit>(
	... 6 more
dominic.httpkit is tiny & simple

dominicm 2020-09-20T15:59:38.025Z

❯ cat src/dominic/httpkit.clj  
(ns dominic.httpkit
  (:require [org.httpkit.server :refer :all]))

(defn app [req]
  {:status  200
   :headers {"Content-Type" "text/html"}
   :body    "hello HTTP!"})

(defn -main [& args]
  (run-server app {:port 8080})

dominicm 2020-09-20T16:00:15.025100Z

I'm using clj -Spath for the -cp to native-image, so I would assume that clojure files should be included?

borkdude 2020-09-20T16:18:10.025500Z

maybe best to throw this up into a git repo

dominicm 2020-09-20T16:21:35.025600Z

OK, I have got it by fixing an "unrelated issue". Seems to have been caused by the lack of log4j on my classpath... weird!

borkdude 2020-09-20T16:22:03.025900Z

There's a hello world project in