I just started with java 1.5 and I am not able to compile the following code:
It throws the following error:
I have not installed the jdk 5 but copied the "j2sdk1.5.0" folder from another machine. I earlier thought it to be a path problem so i copied my source file in to j2sdk1.5.0\bin folder and tried compiling it, which gave me the same error.
Can any body help me the silliest mistake i am making.
I did thought that this might be an issue & so have changed the path and other variables to point to the folder where this jdk is copied. Following is the output:
Use Java5 with Eclipse as your editor. Eclipse gives you compliance options (1.3, 1.4, 5), so you can be aware of what version of Java you are coding to.
I did realize the mistake. I corrected the source file, but still i don't get through with compiling. As suggested by others, let me download the latest version of jdk5, install it, and check out.