Hello World Program

A simple program

HelloWorld.java

package mypack; // the package of your program

import com.rundumsweb.servers.bukkish.BukkishTask;
import com.rundumsweb.servers.bukkish.Session;

public class HelloWorld extends BukkishTask {

    // This constructor is needed
    public HelloWorld(LinkQueue lq, Session caller, String cmdLine) {
        super(lq, caller, cmdLine);
    }

    // The entry point
    public void run() {
        writeOut("Hello World");
        finish();  // To end the task
    }
}

mainClass.txt

mypack.HelloWorld

In this file you need to declare the main class of your program so BukkiSH can find the entry point.

helloworld.jar

/mypack/HelloWorld.class
/mainClass.txt

Comments

Posts Quoted:
Reply
Clear All Quotes