Why is my program not executing?

So my program compiles/builds just fine, but when I execute it, SunOne executes the one of the sample programs it comes with. Same thing happens with all java files that i execute.I am very confused and have no idea what is going on? how do i fix this?
[266 byte] By [spyd3rra] at [2007-10-1 17:59:29]
# 1
(sigh) Yet another crossposter. http://forum.java.sun.com/thread.jspa?threadID=642370
warnerjaa at 2007-7-11 12:35:14 > top of Java-index,Developer Tools,Java Compiler...
# 2
yea sorry about that i would delete this post if i knew how....
spyd3rra at 2007-7-11 12:35:15 > top of Java-index,Developer Tools,Java Compiler...
# 3
> yea sorry about that i would delete this post if i> knew how....Atleast now you know that you can't ... delete a post. It's an irreversible reaction. :p
Athenaa at 2007-7-11 12:35:15 > top of Java-index,Developer Tools,Java Compiler...