Unable to start Paper server, but able to start vanilla

Hello,

I’m trying to change my vanilla server to a paper server, but am encountering an error when trying to start it. After replacing the jar file and running the command line, the cache folder is created, but afterwards this error appears:

java.lang.NoClassDefFoundError: Could not initialize class sun.management.Manage
mentFactoryHelper
at java.lang.management.ManagementFactory.getRuntimeMXBean(ManagementFac
tory.java:350)
at org.bukkit.craftbukkit.Main.main(Main.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.papermc.paperclip.Paperclip.main(Paperclip.java:58)
2021-01-04 00:43:27,435 main WARN JMX runtime input lookup class is not availabl
e because this JRE does not support JMX. JMX lookups will not be available, cont
inuing configuration. Ignoring java.lang.IllegalArgumentException: java.lang.NoC
lassDefFoundError: Could not initialize class org.apache.logging.log4j.core.look
up.JmxRuntimeInputArgumentsLookup
2021-01-04 00:43:29,276 main ERROR Unable to call ManagementFactory.getRuntimeMX
Bean().getStartTime(), using system time for OnStartupTriggeringPolicy java.lang
.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPol
icy.initStartTime(OnStartupTriggeringPolicy.java:57)
at org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPol
icy.(OnStartupTriggeringPolicy.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build
(PluginBuilder.java:132)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPlug
inObject(AbstractConfiguration.java:952)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConf
iguration(AbstractConfiguration.java:892)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConf
iguration(AbstractConfiguration.java:884)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConf
iguration(AbstractConfiguration.java:884)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConf
iguration(AbstractConfiguration.java:884)
at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigur
e(AbstractConfiguration.java:508)
at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize
(AbstractConfiguration.java:232)
at org.apache.logging.log4j.core.config.AbstractConfiguration.start(Abst
ractConfiguration.java:244)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerCo
ntext.java:545)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext
.java:617)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext
.java:634)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:
229)
at org.apache.logging.log4j.core.async.AsyncLoggerContext.start(AsyncLog
gerContext.java:76)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(Abstrac
tLoggerAdapter.java:122)
at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFac
tory.java:43)
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(Abstract
LoggerAdapter.java:46)
at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFact
ory.java:29)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
at io.netty.util.internal.logging.Slf4JLoggerFactory.newInstance(Slf4JLo
ggerFactory.java:47)
at io.netty.util.internal.logging.InternalLoggerFactory.newDefaultFactor
y(InternalLoggerFactory.java:43)
at io.netty.util.internal.logging.InternalLoggerFactory.getDefaultFactor
y(InternalLoggerFactory.java:62)
at io.netty.util.internal.logging.InternalLoggerFactory.getInstance(Inte
rnalLoggerFactory.java:88)
at io.netty.util.internal.logging.InternalLoggerFactory.getInstance(Inte
rnalLoggerFactory.java:81)
at io.netty.channel.AbstractChannelHandlerContext.(AbstractChann
elHandlerContext.java:41)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.bukkit.craftbukkit.Main.tryPreloadClass(Main.java:333)
at org.bukkit.craftbukkit.Main.tryPreloadClass(Main.java:329)
at org.bukkit.craftbukkit.Main.main(Main.java:299)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.papermc.paperclip.Paperclip.main(Paperclip.java:58)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.manage
ment.ManagementFactoryHelper
at java.lang.management.ManagementFactory.getRuntimeMXBean(ManagementFac
tory.java:350)
… 48 more

2021-01-04 00:43:29,853 main ERROR Could not reconfigure JMX java.lang.NoClassDe
fFoundError: Could not initialize class sun.management.ManagementFactoryHelper
at java.lang.management.PlatformComponent$1.getMXBeans(PlatformComponent
.java:72)
at java.lang.management.PlatformComponent.getMXBeans(PlatformComponent.j
ava:377)
at java.lang.management.ManagementFactory.getPlatformMBeanServer(Managem
entFactory.java:472)
at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfi
gure(Server.java:139)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerCo
ntext.java:556)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext
.java:617)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext
.java:634)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:
229)
at org.apache.logging.log4j.core.async.AsyncLoggerContext.start(AsyncLog
gerContext.java:76)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(Abstrac
tLoggerAdapter.java:122)
at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFac
tory.java:43)
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(Abstract
LoggerAdapter.java:46)
at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFact
ory.java:29)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
at io.netty.util.internal.logging.Slf4JLoggerFactory.newInstance(Slf4JLo
ggerFactory.java:47)
at io.netty.util.internal.logging.InternalLoggerFactory.newDefaultFactor
y(InternalLoggerFactory.java:43)
at io.netty.util.internal.logging.InternalLoggerFactory.getDefaultFactor
y(InternalLoggerFactory.java:62)
at io.netty.util.internal.logging.InternalLoggerFactory.getInstance(Inte
rnalLoggerFactory.java:88)
at io.netty.util.internal.logging.InternalLoggerFactory.getInstance(Inte
rnalLoggerFactory.java:81)
at io.netty.channel.AbstractChannelHandlerContext.(AbstractChann
elHandlerContext.java:41)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.bukkit.craftbukkit.Main.tryPreloadClass(Main.java:333)
at org.bukkit.craftbukkit.Main.tryPreloadClass(Main.java:329)
at org.bukkit.craftbukkit.Main.main(Main.java:299)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.papermc.paperclip.Paperclip.main(Paperclip.java:58)


However, using the vanilla jar works fine. There’s an error that appears in the beginning, but it is ignored and the server starts:

2021-01-04 00:54:42,626 main WARN JMX runtime input lookup class is not availabl
e because this JRE does not support JMX. JMX lookups will not be available, cont
inuing configuration. Ignoring java.lang.IllegalArgumentException: java.lang.NoC
lassDefFoundError: Could not initialize class org.apache.logging.log4j.core.look
up.JmxRuntimeInputArgumentsLookup
2021-01-04 00:54:43,055 main ERROR Unable to call ManagementFactory.getRuntimeMX
Bean().getStartTime(), using system time for OnStartupTriggeringPolicy java.lang
.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPol
icy.initStartTime(OnStartupTriggeringPolicy.java:57)
at org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPol
icy.(OnStartupTriggeringPolicy.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build
(PluginBuilder.java:132)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPlug
inObject(AbstractConfiguration.java:952)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConf
iguration(AbstractConfiguration.java:892)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConf
iguration(AbstractConfiguration.java:884)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConf
iguration(AbstractConfiguration.java:884)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConf
iguration(AbstractConfiguration.java:884)
at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigur
e(AbstractConfiguration.java:508)
at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize
(AbstractConfiguration.java:232)
at org.apache.logging.log4j.core.config.AbstractConfiguration.start(Abst
ractConfiguration.java:244)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerCo
ntext.java:545)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext
.java:617)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext
.java:634)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:
229)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:537)
at net.minecraft.server.Main.(SourceFile:57)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.manage
ment.ManagementFactoryHelper
at java.lang.management.ManagementFactory.getRuntimeMXBean(ManagementFac
tory.java:350)
… 29 more

2021-01-04 00:54:43,393 main ERROR Could not reconfigure JMX java.lang.NoClassDe
fFoundError: Could not initialize class sun.management.ManagementFactoryHelper
at java.lang.management.PlatformComponent$1.getMXBeans(PlatformComponent
.java:72)
at java.lang.management.PlatformComponent.getMXBeans(PlatformComponent.j
ava:377)
at java.lang.management.ManagementFactory.getPlatformMBeanServer(Managem
entFactory.java:472)
at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfi
gure(Server.java:139)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerCo
ntext.java:556)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext
.java:617)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext
.java:634)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:
229)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:537)
at net.minecraft.server.Main.(SourceFile:57)

I include this because I think my issue may be related.

I am running on Windows Vista. The server is Minecraft 1.16.4. I am using the Java 8 server JRE update 271, but the issue exists on the JDK and the normal JRE as well (though the error when starting the vanilla server doesn’t appear with the normal JRE). The Paper version is build #355.

What is going on, and how do I fix it? If there is additional information needed, I would be glad to provide it.

Thanks!

Improper Java installation? Uninstall Java completely using the uninstaller, reboot, and install Java 11 hotspot (https://adoptopenjdk.net/installation.html).
You don’t want to run your server on a JRE (or Vista).

1 Like

Java 11 doesn’t support Windows Vista. This is the only spare computer I have, so I have to use it. I’ve used both the JDK and the Server JRE, but they both run into this issue. I’m not sure if Java is the issue, since the vanilla server works fine and the Paper one doesn’t.

I don’t use Windows, however, Paper will require Java 11 as of 1.17. You can try fiddling with installing the JDK back and forth but generally :man_shrugging:
Vista is EOL.

Thanks for the info. I’ll keep trying to fix the problem.