play-clj

Chris K 2021-06-06T00:36:53.002800Z

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 ld.so: 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) 2021-06-06T16:16:43.003100Z

most likely you'll need java 1.8

Chris K 2021-06-06T18:48:52.004200Z

@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 K 2021-06-06T18:57:19.004600Z

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

Juλian (he/him) 2021-06-06T18:59:04.006500Z

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 K 2021-06-06T19:00:16.007300Z

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) 2021-06-06T19:02:31.008100Z

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

Chris K 2021-06-06T19:06:41.009200Z

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 😛