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:
(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
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL