teja dharma wrote:The given below are the system environmental variables with values i have added according to my system.
JAVA_HOME C:\Program Files\Java\j2sdk1.5.0
CLASSPATH C:\Program Files\Java\j2sdk1.5.0\bin
PATH C:\Program Files\Java\j2sdk1.5.0\bin
Is this correct ? if not what are the environmental variables with values? Do i have to add for system or user? As for now i added for both system and user do i have to restart my pc?
Remove the CLASSPATH setting. It certainly does no good to point it to the JDK 'bin' directory.
You will have problems with the JDK installed into a directory with spaces in it. Move it to a directory that doesn't have any spaces, like
C:\Java\j2sdk1.5.0 and update your environment variables accordingly.