Download JDK1.5 from the Internet, after installation, set the appropriate environment variable Java_Home and ClassPath.
Then, write the test program to test, find that always report:
Exception in thread "main" java.lang.noclassdefounderror: test1
Check environment variables ClassPath is not wrong, this search online, found that this problem is not in a small number. Located, find an English help, it turns out, add one after classpath =.;
So, I am thinking, why is Sun not set a good environment variable when installing, and the user wants yourself? .NET also sets a certain environment variable, it is set up after installation. Therefore, from the perspective of considerate users, Microsoft has indeed it.