Don't try to give an absolute path for the class: there is no such class as "C:\Users\nir\Desktop\JavaFiles\Test". Instead, give the (fully-qualified, if using packages) name of the class, and use a -cp argument to give the location.
Joined: Apr 23, 2009
what is a fully qualified path ? Hopw is it different from absolute path ? Whats wrong with the way path is given ?
I dont see java executable file in path "C:\Program Files\Java\jre6\bin". I see java application file in this path, which is 142 kb
I see javac executable file and java application file in path "C:\Program Files\Java\jdk1.6.0_27\bin".
How will the class file be executed ? Does it execute with java application file ? Shall I just provide "C:\Program Files\Java\jdk1.6.0_27\bin" in the Path environment variable ? Or shall I provide both the paths mentioned in Path environment variable ?
Is that the whole of your PATH? What about things like the system and win32 folders? Are they not in your PATH?
Try echo %PATH% at a command-line and see what happens.
Does the \jre\ folder still exist? [But the computer will probably do nothing if you put a non-existent folder into your PATH.]
It would appear there is a configuration file which has vanished. Try exploring the folder it is supposed to be in (C:\Program Files\Java\jre6\lib\i386).
You might find a new installation easier than all this messing about with folders. You will have to edit your PATH to include the Java™ installation folder, and to remove any old Java™ installations. The details are in the Java™ installation instructions (§4, I think).
As correctly pointed out by Ritchie, it will be good to have a fresh installation of the Java(JDK and JRE both).
1. Please uninstall your current java installtion and re-install fresh java
2. you can check the following links along with the "installation instructions (§4, I think)" as correctly pointed out by Ritchie,
3. Also if the program is NOT very large, it will be good if you can let us show the program once.
4. Are you going to compile and execute the program using "command prompt" (cmd) ?
5. Please let us know the PATH and CLASSPATH values.
“Men are only as good as their technical development allows them to be.”