Answering this part,
"And another thingany java command i run in th prompt just gives me a list of the commands i am so lost"
I presume you are just typing
java
into the command prompt.
What you need to do is use the name of your file you have compiled. Let us say that you have made the welcome program with the name of the file as
welcome.java
Then when you compile it, a new file is produced that is
welcome.class
Now, to run this program you need to type
java welcome
and it should work.
Of course, if the name of your file(s) is not welcome, change the command that you type to whatever name you have. For instance, just say the file is named myclass.class, you would type
java myclass
Good luck with it.
[EDIT]
It sounds as if you have not compiled the Welcome class yet.
You need to type
javac Welcome.java
before you can do the
java Welcome
The javac command will compile the Welcome.java to Welcome.class that you can run with the java command.
If you have already compiled the Welcome.java file, you will need to find where Welcome.class is. If it is in the D:\Programs> folder, then you have a classpath issue and will need to set the classpath.
These pages will give you information about how to set the classpath.
http://faculty.ed.umuc.edu/~arnoldyl/NetBeansTutorials/Setting-Classpath.html
http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html