Ok, Im following a book called Just Java 2, it shows how to compile a file and then run it with the command prompt by doing like:

javac clock.java
java clock

(the source code for the script you get from their website)

but i don't have a program that will let me save a file as .java so i saved it as .js and when i do the javac clock.js it just lists a whole bunch of commands to use with javac like -verbose etc and then i do java clock and it says "Exception in thread main: java.lang.NoClassDefFoundError: clock or any other class in the file.

The code is at: www.afu.com/jj6