I was having a similar issue with my very first java program.
I was issuing this command
java HelloWorld.class
Which resulted in the same error.
Turns out you need to exclude the .class
java HelloWorld
More Related Contents:
- Failed to load the JNI shared Library (JDK)
- How to bring a window to the front?
- How to stop java process gracefully?
- Windows shortcut (.lnk) parser in Java?
- How to update PATH variable permanently from Windows command line?
- How to do a true Java ping from Windows?
- Run Java application at Windows startup
- How to find and kill running Win-Processes from within Java?
- How to simulate a real mouse click using java?
- Windows: how to get a list of all visible windows?
- Java 7 default locale
- How can I set date and time formatting in Java that respects the user’s OS settings
- How can I add a context menu to the Windows Explorer for a Java application?
- “Hello world” Android app with as few files as possible, no IDE, and text editor only
- Default character encoding for java console output
- Validate a file name on Windows
- Windows 7 Taskbar Progress Bar in Java
- Simple Java program 100 times slower after plugging in USB hotspot
- Find out what application (window) is in focus in Java
- How to kill a process in Java, given a specific PID
- Reading Windows file summary properties (title, subject, author) in Java
- Run Java file as Administrator with full privileges
- How do you determine 32 or 64 bit architecture of Windows using Java?
- Launch associated program or show “Open with” dialog from another program
- Knowing which java.exe process to kill on a windows machine [closed]
- Can’t get past 2542 Threads in Java on 4GB iMac OSX 10.6.3 Snow Leopard (32bit)
- Powershell: Capturing standard out and error with Process object
- How to configure trustStore for javax.net.ssl.trustStore on windows?
- Inno Setup: Extending Windows default apps list
- How can I give my Java application a unique process name?