Skip to content

java.lang.NoClassDefFoundError: org.fusesource.jansi.Ansi #348

Closed

Description

Terms

  • I'm using the very latest version of CosmeticsCore and its dependencies.
  • I already searched on this Github page to check if the same issue was already reported.
  • I already searched on the plugin wiki to know if a solution is already known.
  • I already searched on the Discord server to know if anyone already provided a solution in the past for the issue.

Discord tag (optional)

No response

What happened?

CosmeticsCore throws a java.lang.NoClassDefFoundError: org.fusesource.jansi.Ansi error during server startup and fails to start.

Steps to reproduce the issue

The server throws an error even when started with a clean configuration and only the CosmeticsCore dependencies installed
(Installed plugins on the server: CosmeticsCore, PlaceholderAPI, ProtocolLib).

Server version

Paper version 1.21.8-60-main@29c8822

CosmeticsCore Version

CosmeticsCore version 1.3.9
Author: LoneDev

ProtocolLib Version

ProtocolLib version 5.4.1-SNAPSHOT-468082c
Provides read/write access to the Minecraft protocol.
Authors: dmulloy2, and comphenix

FULL server log

[16:21:48] [ServerMain/INFO]: [bootstrap] Running Java 24 (Java HotSpot(TM) 64-Bit Server VM 24.0.1+9-jvmci-b01; Oracle Corporation Oracle GraalVM 24.0.1+9.1) on Windows 11 10.0 (amd64)
[16:21:48] [ServerMain/INFO]: [bootstrap] Loading Paper 1.21.8-60-main@29c8822 (2025-09-06T21:49:13Z) for Minecraft 1.21.8
[16:21:49] [ServerMain/INFO]: [PluginInitializerManager] Initializing plugins...
[16:21:49] [ServerMain/INFO]: [PluginInitializerManager] Initialized 3 plugins
[16:21:49] [ServerMain/INFO]: [PluginInitializerManager] Bukkit plugins (3):

  • CosmeticsCore (1.3.9), PlaceholderAPI (2.11.6), ProtocolLib (5.4.1-SNAPSHOT-468082c)
    [16:21:52] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
    [16:21:52] [ServerMain/INFO]: [ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry] Initialising converters for DataConverter...
    [16:21:52] [ServerMain/INFO]: [ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry] Finished initialising converters for DataConverter in 249.3ms
    [16:21:54] [ServerMain/INFO]: Loaded 1407 recipes
    [16:21:54] [ServerMain/INFO]: Loaded 0 advancements
    [16:21:54] [Server thread/INFO]: Starting minecraft server version 1.21.8
    [16:21:54] [Server thread/INFO]: Loading properties
    [16:21:54] [Server thread/INFO]: This server is running Paper version 1.21.8-60-main@29c8822 (2025-09-06T21:49:13Z) (Implementing API version 1.21.8-R0.1-SNAPSHOT)
    [16:21:54] [Server thread/INFO]: [spark] This server bundles the spark profiler. For more information please visit https://docs.papermc.io/paper/profiling
    [16:21:54] [Server thread/INFO]: Server Ping Player Sample Count: 12
    [16:21:54] [Server thread/INFO]: Using 8 threads for Netty based IO
    [16:21:54] [Server thread/INFO]: [MoonriseCommon] Paper is using 5 worker threads, 1 I/O threads
    [16:21:54] [Server thread/INFO]: [ChunkTaskScheduler] Chunk system is using population gen parallelism: true
    [16:21:54] [Server thread/INFO]: Default game type: SURVIVAL
    [16:21:54] [Server thread/INFO]: Generating keypair
    [16:21:54] [Server thread/INFO]: Starting Minecraft server on *:36843
    [16:21:54] [Server thread/INFO]: Using default channel type
    [16:21:54] [Server thread/INFO]: Paper: Using Java compression from Velocity.
    [16:21:54] [Server thread/INFO]: Paper: Using Java cipher from Velocity.
    [16:21:55] [Server thread/INFO]: [ProtocolLib] Loading server plugin ProtocolLib v5.4.1-SNAPSHOT-468082c
    [16:21:55] [Server thread/INFO]: [PlaceholderAPI] Loading server plugin PlaceholderAPI v2.11.6
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading server plugin CosmeticsCore v1.3.9
    [16:21:55] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [16:21:55] [Server thread/INFO]: [ProtocolLib] Enabling ProtocolLib v5.4.1-SNAPSHOT-468082c
    [16:21:55] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    [16:21:55] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
    [16:21:55] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    [16:21:55] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
    [16:21:55] [Server thread/INFO]: Preparing level "towny"
    [16:21:55] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
    [16:21:55] [Server thread/INFO]: Time elapsed: 3 ms
    [16:21:55] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether
    [16:21:55] [Server thread/INFO]: Time elapsed: 2 ms
    [16:21:55] [Server thread/INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.11.6
    [16:21:55] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Enabling CosmeticsCore v1.3.9
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library FastNbt-jar (remapped)...
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library commons-math3...
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-api...
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-key
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library examination-api
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library examination-string
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library annotations
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-minimessage...
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-api
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-key
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library examination-api
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library examination-string
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library annotations
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-gson...
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-json
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-api
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-key
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library examination-api
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library examination-string
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library option
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library jspecify
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library gson
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library auto-service-annotations
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-commons
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library annotations
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-gson-legacy-impl...
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-gson
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-json
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library option
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library jspecify
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library gson
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library auto-service-annotations
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-commons
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library annotations
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-json-legacy-impl
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-api
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-key
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library examination-api
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library examination-string
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-nbt
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-platform-bukkit...
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-platform-api
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-api
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-key
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-bungeecord
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-legacy
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-nbt
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library examination-api
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library examination-string
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library annotations
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-gson
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-json
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library option
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library jspecify
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library auto-service-annotations
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-commons
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-gson-legacy-impl
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-text-serializer-json-legacy-impl
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-platform-facet
    [16:21:55] [Server thread/INFO]: [CosmeticsCore] Loading library adventure-platform-viaversion
    [16:21:56] [Server thread/ERROR]: Error occurred while enabling CosmeticsCore v1.3.9 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/fusesource/jansi/Ansi
    at CosmeticsCore_1.3.9.jar/dev.lone.cosmeticscore.en.(SourceFile:26) ~[CosmeticsCore_1.3.9.jar:?]
    at CosmeticsCore_1.3.9.jar/dev.lone.cosmeticscore.ex.(SourceFile:16) ~[CosmeticsCore_1.3.9.jar:?]
    at CosmeticsCore_1.3.9.jar/dev.lone.cosmeticscore.s.u(SourceFile:240) ~[CosmeticsCore_1.3.9.jar:?]
    at CosmeticsCore_1.3.9.jar/dev.lone.cosmeticscore.s.s(SourceFile:103) ~[CosmeticsCore_1.3.9.jar:?]
    at CosmeticsCore_1.3.9.jar/dev.lone.cosmeticscore.Main.onEnable(SourceFile:87) ~[CosmeticsCore_1.3.9.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:280) ~[paper-api-1.21.8-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21.8-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:652) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:608) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
    at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:743) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
    at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:488) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:280) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1164) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
    at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
    at java.base/java.lang.Thread.run(Thread.java:1447) ~[?:?]
    Caused by: java.lang.ClassNotFoundException: org.fusesource.jansi.Ansi
    at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:205) ~[paper-api-1.21.8-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:172) ~[paper-api-1.21.8-R0.1-SNAPSHOT.jar:?]
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490) ~[?:?]
    ... 17 more
    [16:21:56] [Server thread/INFO]: [CosmeticsCore] Disabling CosmeticsCore v1.3.9
    [16:21:56] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
    [16:21:56] [Server thread/INFO]: Done preparing level "towny" (0.907s)
    [16:21:56] [Server thread/INFO]: Running delayed init tasks
    [16:21:56] [Server thread/INFO]: Done (8.176s)! For help, type "help"
    [16:21:56] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.8]
    [16:21:56] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: server [2.6.2]
    [16:21:56] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: statistic [2.0.1]
    [16:21:56] [Server thread/INFO]: 3 placeholder hook(s) registered! 3 placeholder hook(s) have an update available.

Error (optional)

[16:21:56] [Server thread/ERROR]: Error occurred while enabling CosmeticsCore v1.3.9 (Is it up to date?)
java.lang.NoClassDefFoundError: org/fusesource/jansi/Ansi
	at CosmeticsCore_1.3.9.jar/dev.lone.cosmeticscore.en.<clinit>(SourceFile:26) ~[CosmeticsCore_1.3.9.jar:?]
	at CosmeticsCore_1.3.9.jar/dev.lone.cosmeticscore.ex.<clinit>(SourceFile:16) ~[CosmeticsCore_1.3.9.jar:?]
	at CosmeticsCore_1.3.9.jar/dev.lone.cosmeticscore.s.u(SourceFile:240) ~[CosmeticsCore_1.3.9.jar:?]
	at CosmeticsCore_1.3.9.jar/dev.lone.cosmeticscore.s.s(SourceFile:103) ~[CosmeticsCore_1.3.9.jar:?]
	at CosmeticsCore_1.3.9.jar/dev.lone.cosmeticscore.Main.onEnable(SourceFile:87) ~[CosmeticsCore_1.3.9.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:280) ~[paper-api-1.21.8-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21.8-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:652) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:608) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:743) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:488) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:280) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1164) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310) ~[paper-1.21.8.jar:1.21.8-60-29c8822]
	at java.base/java.lang.Thread.run(Thread.java:1447) ~[?:?]
Caused by: java.lang.ClassNotFoundException: org.fusesource.jansi.Ansi
	at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:205) ~[paper-api-1.21.8-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:172) ~[paper-api-1.21.8-R0.1-SNAPSHOT.jar:?]
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490) ~[?:?]
	... 17 more
[16:21:56] [Server thread/INFO]: [CosmeticsCore] Disabling CosmeticsCore v1.3.9

CosmeticsCore config.yml

lang: en
prefix: ''
extract_default_assets: true
cosmetics:
  max_equippable:
    body: 1
    balloon: 1
  hide_during_combat:
    enabled: true
    combat_duration_ticks: 600
    only_pvp: true
  fix_invisible_nametag: false
  hide_in_vanish: true
  worlds:
  - '*'
wardrobe_room:
  allow-not-owned-preview: true
  camera:
    hide_actionbar_texts: true
    rotation:
      manual:
        enabled: true
        step: 20
      auto:
        enabled: true
        direction: RIGHT
        step: 1.5
        pause_ticks_on_manual_rotation: 60
    zoom:
      enabled: true
      min: 2
    fade_effect: true
    location:
      world: world
      x: -66.0
      y: 75.3
      z: -1.0
      yaw: 90.0
      pitch: 0.0
    use_invisibility_potion: false
  mannequin:
    location:
      world: world
      x: -70.0
      y: 74.0
      z: -1.0
      yaw: -90.0
      pitch: 0.0
  teleport_area:
    enter:
      world: world
      pos1:
        x: -58.0
        y: 74.0
        z: 2.0
      pos2:
        x: -58.0
        y: 80.0
        z: -5.0
    exit_location:
      world: world
      x: -53.5
      y: 74.0
      z: -1.0
      yaw: -90.0
      pitch: 0.0
  gui:
    cursor_default: fermented_spider_eye:9000001
    cursor_rotate: fermented_spider_eye:9000002
    cursor_pointer: fermented_spider_eye:9000003
    dyeing_pointer: fermented_spider_eye:9100003
    tutorial_gui: fermented_spider_eye:9100004
    tutorial_gui_checked: fermented_spider_eye:9100005
    slots:
      colors:
        not_owned: 195,147,57
        owned: 56,67,100
        wearing: 57,70,195
        wearing_preview: 195,120,57
        max_amount_reached_owned: 24, 29, 43
        max_amount_reached_not_owned: 64, 48, 17
      add_item_in_blank_slots:
        # This is useful only for some expert users that need to do some crazy stuff.
        # Do not enable it if you don't know what you are doing.
        enabled: false
        type: PAPER
        custom_model_data: 1337666
  commands:
    whitelist:
      enabled: false
      list:
      - home
      - sethome
    blacklist:
      enabled: false
      list:
      - home
      - sethome
send_creative_hidden_hat_message: false
save:
  file:
    enabled: true
  mysql:
    enabled: false
    url: jdbc:mysql://my_url_database_69.com:3306/database_name
    username: username
    password: password
    table: cosmeticscore_saved
debug: false

Problematic items yml configuration file (optional)

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions