#paperclip

1 messages · Page 1 of 1 (latest)

delicate viperBOT
#
[PaperMC/Paperclip] branch deleted: improve-java-check
delicate viperBOT
#

When using the platform classloader as parent, service loaders fail to look up services that are defined in a jdk module.

As an example, consider the following onEnable of a plugin:

    @Override
    public void onEnable() {
        System.out.println(RandomGenerator.getDefault());
    }

this will result in an exception:

[12:41:12 ERROR]: Error occurred while enabling Paper-Test-Plugin v1.0.0-SNAPSHOT (Is it up to date?)
java.lang.IllegalArgumentException: No impl...
delicate viperBOT
#
[PaperMC/Paperclip] New branch created: manifest-meta
delicate viperBOT
#

I'm using IBM Semeru JDK 21.0.2

% java -version
openjdk version "21.0.2" 2024-01-16 LTS
IBM Semeru Runtime Open Edition 21.0.2.0 (build 21.0.2+13-LTS)
Eclipse OpenJ9 VM 21.0.2.0 (build openj9-0.43.0, JRE 21 Mac OS X aarch64-64-Bit 20240116_96 (JIT enabled, AOT enabled)
OpenJ9   - 2c3d78b48
OMR      - ea8124dbc
JCL      - 78c4500a434 based on jdk-21.0.2+13)

When I run paper jar download from website it just crashed.

% java -jar paper-1.21.4-183.jar 
Downloading mojang_1.21.4.jar
Ap...
delicate viperBOT
delicate viperBOT
#

I'd like to see a way to add custom classes to the server classpath.

My use case
I'm attempting to add a custom Log4J appender to the server.

Alternatives I have considered

  • Adding the appender using a plugin. This is what I'm currently doing. The problem is that log messages from server startup aren't used in my custom logger
  • Forking Paperclip and building a custom Paper jar, which requires too much maintenance for a simple change like this.
  • https://github.com/PaperMC/Papercli...
delicate viperBOT
delicate viperBOT
delicate viperBOT
delicate viperBOT
#
[PaperMC/Paperclip] New tag created: v3.0.4