Fork me on GitHub
Chris K00:06:53

hello just tried to setup play-clj but lein-run keeps giving me error:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.lwjgl.LWJGLUtil$3 (file:/home/ck/.m2/repository/org/lwjgl/lwjgl/lwjgl/2.9.2/lwjgl-2.9.2.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.lwjgl.LWJGLUtil$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Inconsistency detected by dl-lookup.c: 105: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!
I ran lein-deps, and remember seeing lein downloading the necessary stuff from clojars. I followed what the github readme was saying, just use lein, and then lein-run should work right away. Anyone had similar problem or know how to fix? I am on artix linux with xorg (maybe my window manager can be causing the problem with launching windows?) thanks

Juλian (he/him)16:06:43

most likely you'll need java 1.8

Chris K18:06:52

@julian608 Do you know how I can change java version to 1.8? I have currently java 11 installed (as websites said that is the recommended?)

Chris K18:06:19

@julian608 It works after changing to java 8 thank you so much

Juλian (he/him)18:06:04

You can set the environment variable JAVA_CMD to the 1.8 executable if you don't want to change the default system version

Chris K19:06:16

oh I already uninstalled java11... lol I use java just for clojure so I think i'm fine with just changing the system

Juλian (he/him)19:06:31

I had the same issue when using 3d renderers with Quil (p3d or opengl)

Chris K19:06:41

I think java8 is like an industry standard or something.. I see a lot of program using java8 despite there's like so many now. But still not a java expert 😛