Oops issue resolved Had to type in Javac Hello.java
Then type in java Hello Finally got the correct result Hello world From: David Seto [mailto:[email protected]] Sent: Thursday, July 16, 2009 11:15 AM To: '[email protected]' Subject: Problems with hello word java program Ran the program below - Javac hello I got the following error message - C:\Program Files\Java\jdk1.6.0_14\bin>javac hello error: Class names, 'hello', are only accepted if annotation processing is explicitly requested 1 error What does that mean? Also it didn't create any Hello.class file in the directory. Program listed below. public class Hello { /** * My first Java program */ public static void main( String[] args ){ // Print the string "Hello world" on screen System.out.println("Hello world"); } } --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
