Canary Server Error Messages

The Canary server will display error messages either in the server log (at ~/Desktop/server/logs/latest.log) or right in the Minecraft game console as you’re playing. Here are the most common errors you might see with a new plugin.

Server Log: Plugin Won’t Load

Most errors in the log file or in the server’s console (in your screen session) are more straightforward than the compiler error messages. One of the most critical and common ones is this error:

 
[SEVERE] Could not load ​'plugins/HelloWorld.jar'​ in folder ​'plugins'
 
net.canarymod.exceptions.InvalidPluginException:
 
java.lang.ClassNotFoundException: helloworld.HelloWorld

You’ve written a new plugin, and you’re getting an error that it can’t be loaded. ...

Get Learn to Program with Minecraft Plugins, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.