I have wrote a simple java program as below. public class Welcome1 { public static void main(String args[]) { System.out.println("Welcome to Java Programming!"); } } If I compile above code I am getting 100 error message and 206 warning message. Everyone of it says same thing �Warning : as of release 1.4, assert is a keyword, and may not be used as an identifier.� Can anyone explain me , what I am doing wrong ?

Hi Girish, Welcome to JavaRanch! Well, I can tell you one thing you're doing wrong, but it shouldn't cause those error messages. Your setting for CLASSPATH shouldn't include src.zip; the file you would want is %JAVA_HOME%\jre\lib\rt.jar . But actually, at the beginning, regardless of anything you've read anywhere else (which may have been based on some now obsolete information) you shouldn't have CLASSPATH set at all. Just remove that setting altogether, and trust me, you'll be happier. The JDK knows how to find its own classes just fine. Now, as far as the error messages: let's see the command line you used to compile your program. It should have been just javac Welcome1.java I suspect you're supplying more arguments than this, perhaps asking the compiler to recompile the JDK source by accident.