#am i dumb or did i do something wrong here

1 messages · Page 1 of 1 (latest)

arctic helmBOT
#

<@&987246652869971988> please have a look, thanks.

#

Detected code, here are some useful tools:

Formatted code
jar tvf. / log4j - api / 2.19.0 / log4j - api - 2.19.0.jar | rg Level1684Tue Sep1310 : 16 : 32CDT2022org / apache / logging / log4j / util / LowLevelLogUtil.class 6718Tue Sep1310 : 16 : 32CDT2022org / apache / logging / log4j / Level.class 2311Tue Sep1310 : 16 : 32CDT2022org / apache / logging / log4j / spi / StandardLevel.class
arctic helmBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

pulsar vessel
#

@gray mist interesting

#

so yeah, as long as one of those is on the classpath things should work

#

duplicates cause other problems but ClassNotFound is not one of them

pulsar vessel
#

makes me appreciate the work they had to do to get minecraft work with jlink

#

okay so

#
java --illegal-access=warn -Djava.security.manager=allow -Dfile.encoding=UTF-8 -jar minecraft.jar nogui
#

none of the --add-opens matter

#

(for the purposes of your error)

#
java -jar minecraft.jar nogui
#

neither do any of the other options

#

do you ever set --class-path?

#

like, are there jars besides minecraft.jar that matter?

#

java <ALL THE ADD OPENS AND WHATEVER> --class-path ./log4j-api/2.19.0/ -jar minecraft.jar nogui

pulsar vessel
#

is log4j used for a plugin

#

or for the core thing

#

(if that question makes sense)

#

so its in the minecraft jar?

#

i know its used by minecraft but idk if you are loading a plugin

#

in which cas emaybe there are wierd rules saying what is accessible to you

#

idk/

#

keep in mind old versions of log4j have that wretched RCE bug

#

so you might want to replace or patch it somehow regardless

#

so maybe remove it from the jar and just put a new version on the classpath

arctic helmBOT
#

Closed the thread due to inactivity.

If your question was not resolved yet, feel free to just post a message to reopen it, or create a new thread. But try to improve the quality of your question to make it easier to help you 👍

arctic helmBOT
#

Closed the thread due to inactivity.

If your question was not resolved yet, feel free to just post a message to reopen it, or create a new thread. But try to improve the quality of your question to make it easier to help you 👍