just an example: HalloWeltPlugin.java

compile the java file, use the bukkit jar in the classpath:
javac HalloWeltPlugin.java -cp c:\server\bundler\libraries\bukkit-1.19.3-R0.1-SNAPSHOT.jar

>> now we get a file: HalloWeltPlugin.class

create a plugin.yml file:
name: Hallo_Welt-Plugin
main: HalloWeltPlugin
api-version: 1.19
version: 0.1

build a new jar file:
jar -cf HalloWeltPlugin.jar HalloWeltPlugin.class plugin.yml

copy jar file to minecraft server plugin directory:
copy HalloWeltPlugin.jar c:\server\plugins


import org.bukkit.plugin.java.JavaPlugin;

public class HalloWeltPlugin extends JavaPlugin {
public void onEnable() {
this.getLogger().info("Hallo Welt!");

public void onDisable() {

computer2know :: thank you for your visit :: have a nice day :: © 2023