Fork me on GitHub
#boot
<
2019-02-01
>
bolasblack06:02:47

Hi, I'm trying use bootclj/boot-native on docker:

docker run -e BOOT_AS_ROOT=true -t bootclj/boot-native
And I got an error:
Downloading ...
Error: Could not find or load main class clojure.main
Is there any step I have lost?

bolasblack06:02:54

If I just run docker run -t bootclj/boot-native, boot print a warning:

Exception in thread "main" java.lang.SecurityException: Refusing to run as user "root". See 
        at boot.exceptions$security.invokeStatic(exceptions.clj:7)
        at boot.exceptions$security.invoke(exceptions.clj:6)
        at boot$prevent_root.invokeStatic(boot.clj:21)
        at boot$prevent_root.invoke(boot.clj:19)
        at boot$_main.invokeStatic(boot.clj:73)
        at boot$_main.doInvoke(boot.clj:68)
        at clojure.lang.RestFn.invoke(RestFn.java:397)
        at clojure.lang.AFn.applyToHelper(AFn.java:152)
        at clojure.lang.RestFn.applyTo(RestFn.java:132)
        at boot.main(Unknown Source)

danielstockton13:02:53

Hi. Does anyone know what can cause Caused by: java.lang.ClassNotFoundException: sun.misc.Launcher$ExtClassLoader when running latest boot with OpenJDK 11?