i work with eclipse oxygen i write two program one server and other client and i want to execute then with cmd windows i use the version of jdk 1.8 the javac name of program pass successful but when i execute the program with java name of program it generate an error Impossible to found or load the pricipal class someone help me how i solve this problem taking on consideration that i configure the variable path system giving the chemin to directory bin of jdk.
The PATH system variable enables the Windows system to find the Java JRE. The CLASSPATH system variable allows the Java JRE to find Java classes.
Looks like you have the first part set up correctly but not the second part.
Also, in future it would help if you told us the exact error message and not just your memory of what it was. Use the copy and paste keys to transfer the actual message to the box where you are posting your question here on the Ranch.
Even worse is using the JRE extension mechanism, which allows JARs to be available by putting them in <jre>/lib/ext. That's just asking for problems, because JARs in this folder have precedence over JARs on your class path. We recently had a class loading issue with Bouncy Castle which we discovered was caused by an older version in <jre>/lib/ext.
No idea. They may be removed by the uninstaller, but I think it's more likely they will remain in place. If they do remain, then the installer will most likely leave them in place, and you end up with a newer Java version with the same libraries in <jre>/lib/ext.