I will help you. From the start, find the scrip that you want to run, like UbuntsEssence miner. Copy the script which will look a little like this:
import java.awt.*;
import java.awt.event.KeyEvent;
import com.speljohan.rsbot.bot.Bot;
import com.speljohan.rsbot.script.Script;
import com.speljohan.rsbot.script.Skills;
import com.speljohan.rsbot.script.Calculations;
import com.speljohan.rsbot.script.wrappers.*;
import com.speljohan.rsbot.event.listeners.PaintListener;
public class UbuntuEssence extends Script implements PaintListener {
long gainedExp = 0;
long gainedLevels = 0;
long checkTime;
long startTime = 0;
int lastCheck;
int startLevel;
int startExp;
(continued....) used as example)
Paste the whole script into a note pad, now find the filename which is always before extends above and after class, in this case is UbuntuEssence. Save this in your rsbot file in scripts as UbuntuEssence.java.
Now that you have this done run compile, which should take a few seconds to run it into your bot. Now open your bot and go run > script. And your script should be placed in thier for you to use.
I know you wanted just to know how to compile however, most people have problems with what to save it as, and if done wrongly the script will not operate.
Hope I have helped you out. (P.S if you bot any items sell at max or mid. Be patient we dont want to ruin it for legit players or smart botters)